Programming in Python
Exercises, Practice, Solution
search
Subscribe to:
Posts (Atom)
Python program to create a string from two given strings concatenating uncommon characters of the said strings
PROGRAM : a = input('Enter a string : ') b = input('Enter a string : ') c='' for i in a: if(i not in b):...
-
a = input('Enter a string ') b='' i=0 for i in range(len(a)): if(i%2==0): b = b+a[i] print(b)
-
a = input('Enter a string : ') print(a) print(len(a)) b=a.rstrip() print(b) print(len(b))
-
a = input('Enter a string ') b = a nc = '' for n in a: c=0 for m in b: if(m is n and c>0): ...