46.1k views
4 votes
You have the opportunity to meet some droids and Wookies! Prompt the user for their name, then how many droids, and then how many Wookies they want to meet. Print out the name that was given, as well as how many droids and Wookies they wanted to meet. Here is an example of what you should print: Sean wants to meet 3 droids and 2 Wookies.

in phyton code

User NotWoods
by
7.9k points

1 Answer

6 votes

name = input("What's your name? ")

droids = int(input("How many droids do you want to meet? "))

wookies = int(input("How many wookies do you want to meet? "))

print(name + " wants to meet "+str(droids)+" droids and "+str(wookies)+" Wookies.")

I wrote my code in python 3.8. I hope this helps!

User Andrew Dennison
by
9.2k points