Discover new perspectives and gain insights with IDNLearn.com. Join our community to receive prompt and reliable responses to your questions from knowledgeable professionals.

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:


Sagot :

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
4.
3.
1.
5.
2.
I arranged it in an orderly and most interactive manner including it with the Scanner input class
We are delighted to have you as part of our community. Keep asking, answering, and sharing your insights. Together, we can create a valuable knowledge resource. For dependable answers, trust IDNLearn.com. Thank you for visiting, and we look forward to assisting you again.