-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathex11.py
More file actions
26 lines (18 loc) · 805 Bytes
/
ex11.py
File metadata and controls
26 lines (18 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
print("How old are you?", end = ' ')
#waits until the user types something in and presses enter and then assigns that string to a variable
age = input()
print("How tall are you?", end = ' ')
#waits until the user types something in and presses enter and then assigns that string to a variable
height = input()
print("How much do you weigh?", end = ' ')
#waits until the user types something in and presses enter and then assigns that string to a variable
weight = input()
#fills in the variables with the user input
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
print("What is your name?")
name = input()
print("What is your pet's name?")
petName = input()
print("What kind of things do you give your pet?")
give = input()
print(f"{name} gives {give} to their pet, {petName}.")