generated from Geo-Python-2020/exercise-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exer1.py
44 lines (23 loc) · 887 Bytes
/
exer1.py
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
#!/usr/bin/env python
# coding: utf-8
# ice_cream = 4
# sleeping_rating = 9
# first_name = input('First Name')
# print (first_name, 'it is.')
# last_name = input('Last Name')
# print (last_name, 'it is.')
# my_name = first_name + last_name ##not certain of how to embed the spacing.
# print(my_name, 'is my name')
# ## Problem 3 - A bit of math
# happiness_rating = (ice_cream + sleeping_rating)/2
# print(happiness_rating)
# ## Problem 4 - Checking data types
# type(ice_cream)
# type(first_name)
# type(happiness_rating)
# ## Problem 5 Displaying text on the screen
# In[24]:
print('My name is', my_name, 'and I give eating ice cream a score of', ice_cream , 'out of 10.')
print('I am', my_name, 'and my sleeping enjoyment rating is', sleeping_rating , 'out of 10.')
print('Based on factors above, my happiness rating is', happiness_rating, 'out of 10.')
# In[ ]: