-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3 input.py
More file actions
50 lines (22 loc) · 716 Bytes
/
Copy path3 input.py
File metadata and controls
50 lines (22 loc) · 716 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name = input("What is your name: ")
surname = input("what is your surname: ")
print("Your name is ",name ,"and your surname is ",surname)
age = input("What is your age: ")
age = int ( age )
print (age)
age = float ( age)
print (age)
age = int ( input ("What is your age: " ) )
print( age )
age = float (input ("What is your age: " ) )
print( age )
"""
ask the end user:
how many adults want to buy a movie ticket
how many children want to buy a movie ticket
how many pensioners want to buy a movie ticket
if a movie ticket for adults is 10 ,
children pay half
pensioners pay 30%
what is the total ticket price
"""