0% found this document useful (0 votes)
7 views2 pages

Baf Shaheen College, Dhaka-1206: Class:Ix, Section:Radon, Roll:3138 Name:Pollob Subject:Digital Technology

Uploaded by

AZIZUR RAHMAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Baf Shaheen College, Dhaka-1206: Class:Ix, Section:Radon, Roll:3138 Name:Pollob Subject:Digital Technology

Uploaded by

AZIZUR RAHMAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

BAF SHAHEEN COLLEGE, DHAKA-

1206
CLASS:IX,SECTION:RADON,ROLL:3138
NAME:POLLOB
SUBJECT:DIGITAL TECHNOLOGY

1. Write a Python code that defines different kinds of variables.


ANS: a = 5
b = 3.9
c = "twinkle twinkle little star"

2. Write a Python code that identifies different kinds of input data


types.
ANS: a = 5
b = 3.9
c = "twinkle twinkle little star"
print(a)
print(b)
print(c)
print(type(a))
print(type(b))
print(type(c))

3. Write a Python code to create a calculator.


ANS: a = float(input("enter the first number"))
b = float(input("enter the second number"))
c = float(input("enter the third number"))
op=input('choose operator from these :[+,-,*,/]')
if op== '+' :
result = a+b+c
elif op== '-' :
result = a-b-c
elif op=='*' :
result = a*b*c
elif op=='/' :
result = a/b/c
else: print("ERROR 404")
print(a,op,b,c,'=',result)

4. Write a Python code that shows the use of a while loop.


ANS: a = 2
while a<6:
print(a)
a = a+2

5. Write a Python code to create a result where if any student


gets more than 80% marks he/she will get point 5. And following
this formula, you have to go to the "fail" who gets less than 40%
marks.
ANS: a = int(input("ENTER YOUR NUMBER"))
if a>=80:
print("YOU GOT POINT 5")
elif a>=40:
print("YOU ARE PASSED")
else:
print("YOU ARE FAILED")
6. Create a Python program to identify whether you are eligible
for NID. Your required age is 18 to get the NID.

ANS: a = int(input("enter your age"))


if a>=18:
print("you are eligable for NID")
else:
print("you are under age for NID")

旅の途中

You might also like