Goeduhub Technologies Free Online Tutorials || COVID-19 Projects(AI-ML) || Go to your University  ||  Placement Preparation  
  Register for Project Based Online Training in Artificial Intelligence(AI) & Machine Learning(ML): From 15-08-2020 || Last Batch Student's Projects
0 like 0 dislike
734 views
in Examples, Exercises and Projects by Goeduhub's Expert (7.9k points)

Enter 1st string:kishita 

Enter 2nd string:sureka 

sushita kireka

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.9k points)
 
Best answer
a=input()

b=input()

x=a[0:2]

a=a.replace(a[0:2],b[0:2])

b=b.replace(b[0:2],x)

print(a,b)
  Realize your learning potential with courses starting at ₹ 420
 Placements:   List of companies | Logical Reasoning Questions | Quantitative Aptitude Questions | General English Questions | Technical-MCQ and Interview Questions
 Online Free Training:  MACHINE LEARNINGPython Programming | Database Management System(DBMS) | Object Oriented Programming(OOPs) using C++ | Data Structures and Algorithms(DSA) | Java Programming | Linux/Unix | C Programming
Exams: List of Exams After Graduation | List of Engineering Entrance Examinations (UG/PG) | JEE Main | JEE Advanced | GATE | IES | ISRO List of PSUs
 Download Previous Year Papers For:  GATE | IES | RAJASTHAN TECHNICAL UNIVERSITY (RTU-Kota)RPSC Technical Exams | ISRO
 Goeduhub
About Us | Contact Us   Social::   |  | 
...