fork(2) download
  1. def sillycase(silly):
  2. mid = (len(silly) + 1) // 2
  3. return silly[:mid].lower() + silly[mid:].upper()
  4.  
  5. print (sillycase("hello"))
  6. print (sillycase("helloa"))
  7. print (sillycase("helloab"))
  8.  
Success #stdin #stdout 0.02s 8736KB
stdin
Standard input is empty
stdout
helLO
helLOA
hellOAB