9.10 Code Practice: Question 1
Write code that takes in two words from user input. Then, the program should swap the two variables that hold the inputs and print the words in backward order.
1
Expert's answer
2020-05-27T10:55:15-0400
#Promt user to input words
word1 = input("Enter the first word: ")
word2 = input("Enter the second word: ")
#print the words in backward order
print(word2, word1)
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment