-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvideo08.py
52 lines (44 loc) · 1.02 KB
/
video08.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
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
"""Video08.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1A97DqJqk8juKXdiO8XaAedQGFu_lVzzN
"""
number = int(input("please enter a number : "))
if number > 0:
print("mosbat")
if number < 0:
print("manfi")
number = int(input("please enter a number : "))
if number > 0:
print("mosbat")
if number < 0:
print("manfi")
if number == 0:
print("zero (sefr)")
number = int(input("please enter a number : "))
if number >= 0:
print("mosbat ya sefr")
else:
print("manfi")
avg = float(input("moadel khodet r VARED KON :"))
if avg < 0 or avg > 20 :
print("moshkel darad.")
else:
if avg>=0 and avg<10:
print("oftade")
else:
if avg >=10 and avg < 12:
print("mashroot")
avg = float(input("moadel khodet r VARED KON :"))
if avg < 0 or avg > 20 :
print("moshkel darad.")
elif avg>=0 and avg<10:
print("oftade")
elif avg>=10 and avg<12:
print("mashroot")
elif avg>=12 and avg<17:
print("B")
else:
print("A")
17.25