cjtype’s avatarcjtype’s Twitter Archive—№ 3,798

  1. …in reply to @undefined
    @SamSamskies ccedacero This is a nice coding challenge! I’m not sure about js, but in python I would do something like: def upperToFront(s): front = "" back = "" for ch in s: if ch.isupper(): front += ch else: back += ch return front+back s = 'd{e}fA1B2C3' print ( upperToFront(s) )