-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstassinement.py
More file actions
67 lines (55 loc) · 1.76 KB
/
Copy pathfirstassinement.py
File metadata and controls
67 lines (55 loc) · 1.76 KB
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
64
65
66
67
############### First Program ###################
# hight = float(input("Enter your Hight = "))
#
# if(hight >= 6.0):
# print('You are selected')
# else:
# print('You are not selected')
############## Second Program #################
# while(True):
# marks = int(input("Enter your marks = "))
# if (marks >= 0 and marks <= 600):
# sum = marks/600*100
# per = round(sum, 2)
# print("Your percentge is = ", per)
#
# if (per >= 0 and per < 35):
# print("You are Fail")
# elif (per >= 35 and per < 50):
# print("You are Passed in Third class")
# elif (per >= 50 and per < 60):
# print("You are Passed in Second class")
# elif (per >= 60 and per < 85):
# print("You are Passed in First class")
# elif (per >= 85 and per < 100):
# print("You are Passed in Distinction")
#
# break
# else:
# print("Invalid marks, Enter correct marks")
############## Third Program ##################
# num1 = int(input("Enter first number = "))
# num2 = int(input("Enter second number = "))
# oper = input("Enter the Operation = ")
#
# if (oper == '+' or oper == '-' or oper == '/' or oper == '*'):
# if(oper == '+'):
# print("Result is = ", num1 + num2)
# elif(oper == '-'):
# print("Result is = ", num1 - num2)
# elif(oper == '*'):
# print("Result is = ", num1 * num2)
# elif(oper == '/'):
# print("result is = ", num1 / num2)
#
# else:
# print("Invalid Operation")
############# Star Printing #################
# for x in range(1, 6):
# a = 5 - x
# b = x + x - 1
# print(' ' * a, '*' * b)
# for x in range(1, 6):
# a = x - 1
# b = 10 - x - x + 1
# print(' ' * a, '*' * b)