Make your first steps in learning programming. Started a couple weeks ago.
The challenge is that we need to ask the user to enter the name of the animal and numbers. Using the number entered by the user, you need to ask the user to enter as many flowers, each on a separate line. After the user completes the input colors, the program should print a line with the name of the colors entered by the user.
Looks like this(user input in bold):
Enter an animal: cat
How many colors: 4
Color 1: white
Color 2: red
Color 3: blue
4 Color: brown
I started like this:
colors = ["red", "blue", "black", "white", "yellow", "orange", "purple", "brown", "grey", "gray", "silver", "green"] userAnimal = input("Enter an animal: ") userNumber = input("How many colors: ") userNumber = int(userNumber)
And then quite got up :(
Share the knowledge. Thank you!