Write a program to take three names as input from a user in the single input() function call.
input()
Expected Output
Enter three string Emma Jessa Kelly Name1: Emma Name2: Jessa Name3: Kelly
Hint:
split()
Solution:
str1, str2, str3 = input("Enter three string").split() print('Name1:', str1) print('Name2:', str2) print('Name3:', str3)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Hint:
split()function to get three individual namesSolution:
need an explanation for this answer? contact us directly to get an explanation for this answer