526,108 views
23 votes
23 votes
Task 2

Rearrange the lines in the Python program below, so that you have a runnable program
that holds a meaningful interaction with the user.
1 print("And where do you live", name)
2 print ("I've never been to", location)
3 name = input()
4 print("What is your name?")
5 location = input()
Write your rearranged program below:

User Ehime
by
2.6k points

2 Answers

27 votes
27 votes
4.
3.
1.
5.
2.
I arranged it in an orderly and most interactive manner including it with the Scanner input class
User Hunter Monk
by
2.5k points
17 votes
17 votes
4.
3.
1.
5.
2.
I rearranged them so the program would make sense by arranging the interaction in a logical order then placing input statements in between
User FreeVice
by
2.8k points