-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_with_raw_ip.py
More file actions
43 lines (20 loc) · 817 Bytes
/
script_with_raw_ip.py
File metadata and controls
43 lines (20 loc) · 817 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
#!/usr/bin/env python
# coding: utf-8
# In[2]:
name = input("Enter your name: ")
print(name)
# In[4]:
name = int(input("Enter your Age: "))
print(name)
# In[3]:
result = eval(input("Enter Any Expression: "))
print(result)
# # Generate Messages
# In[11]:
names = input("Enter Student Name: ").title().split(",")
assignments = input("Enter missing assignments counts: ").split(",")
grades = input("Enter Grade: ").split(",")
message = "Hi {},\n\nThis is a reminder that you have {} assignments left to submit before you can graduate. You're current grade is {} and can increase to {} if you submit all assignments before the due date.\n\n"
for name, assignment, grade in zip(names, assignments, grades):
print(message.format(name, assignment, grade, int(grade) + int(assignment)*2))
# In[ ]: