Operation

 Write a python program to perform the following operations


1. Get first raw input
2. Get Second raw input

Output:
1. Add two string
2. Exponent of first string
3. Exponent of second string
4. Check whether String B is present in A
5. Check whether String A is present in B
6. Check whether String B not in A
7. Check whether String A not in B



a=input()
b=input()
c=a+b
print(c)
d=a+a
print(d)
e=b+b
print(e)
if (a.find(b) == -1): 
      print("False") 
else: 
      print("True") 
if (b.find(a) == -1): 
      print("False") 
else: 
      print("True") 


if (a.find(b) == -1): 
      print("True") 
else: 
      print("False") 
if (b.find(a) == -1): 
      print("True") 
else: 
      print("False") 
   

Comments