-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3 integers.py
More file actions
63 lines (31 loc) · 849 Bytes
/
Copy path3 integers.py
File metadata and controls
63 lines (31 loc) · 849 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
51
52
53
54
55
56
57
58
59
60
61
62
63
n = 10
print ( n, type (n))
m = 3.5
print ( m, type(m))
n = ( 10 + m - m ) / 3.5
print ( n)
m = input ( 'please enter a number ')
print ( m, type(m))
m = float ( m)
m = m * 5
print ( m, type(m))
tickets = float ( input('how many tickets?') ) #integer whole number
price = 7.5 #decimal or float
#1.8293856 1.8293856 * 10 to power 0
#18293856
#18.293856 1.8293856 * 10 to power 1
#182.93856 1.8293856 * 10 to power 2
# processes
totalPrice = tickets * price
print ( totalPrice )
print ( type(tickets), type(price) , type( totalPrice) )
price = 2
print ( type(price) )
"""
ask the enduser:
how many adults, children, pensioners want to go to the movies?
ticketprice = 10
children pay half
pensioners pay 30%
what is the total price
"""