Skip to content
Snippets Groups Projects
Select Git revision
  • 3101dc26fcd071ec222061a73af267c864ee9282
  • master default protected
2 results

CB.EN.U4CSE16234_lab2_q5.py

Blame
  • CB.EN.U4CSE16234_lab2_q5.py 201 B
    def chars_mix_up(a, b):
      new_a = b[:2] + a[2:]
      new_b = a[:2] + b[2:]
    
      return new_a + ' ' + new_b
    String a=input("Enter first string")
    String b=input("Enter second string")
    print(chars_mix_up(a,b))