Write a python program to take three names as input from a user in the single input() function call.
Accept any three string from one input() call
Accept any three string from one input() call
Emma Jessa Kelly
Enter three string Emma Jessa Kelly Name1: Emma Name2: Jessa Name3: Kelly
split() function to get three individual names
str1, str2, str3 = input("Enter three string").split()
print('Name1:', str1)
print('Name2:', str2)
print('Name3:', str3)
Enter three string Rumman Ansari Hello
Name1: Rumman
Name2: Ansari
Name3: Hello
First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.
Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.