-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9th.py
More file actions
35 lines (23 loc) · 924 Bytes
/
Copy path9th.py
File metadata and controls
35 lines (23 loc) · 924 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
# def hello(name):
# print('Hello',name)
# print('how are you')
# name=input('enter your name ')
# hello(name)
# def iseligible(age):
# if (age>=18) and (age<=60):
# print('eligible for voting')
# else:
# print('not eligible for voting')
# age=(int(input('enter your age ')))
# iseligible(age)
# def percentageCalculator(marks):
# print(int(round(marks/300)*100),"%")
# sub1=int(input('enter your marks of sub 1: '))
# sub2=int(input('enter your marks of sub 2: '))
# sub3=int(input('enter your marks of sub 3: '))
# marks=(sub1+sub2+sub3)
# percentageCalculator(marks)
# Take the price and quantity of an item as input from the user.
# Convert them to appropriate numeric types and calculate the total amount.
# If the total amount is greater than 1000 *and* quantity is more than 5, apply a 10% discount.
# Otherwise, print the normal total. Display final payable amount.