Computer Science, asked by Chhatrshal, 9 months ago

✓ Attempt all questions in order
Programming Language- Python
1
What are data types?
What will be output produced by the following code?
a, b, c, d= 9.2, 2.0, 4, 21
print(a/4)
print(à//4)
print(b**c)
print(d//b)
Write a program to obtain principal amount, rate of intet
compute simple interest.
Correct the following code:
3
4
k=100
else
k=10
What is statement?
5​

Answers

Answered by jayant6096
1

Answer:

What are data types?

Data types are the classification or categorization of data items.

Examples of data type are :boolean,int,float,string,complex number.

What will be output produced by the following code?

a, b, c, d= 9.2, 2.0, 4, 21  

or

a=9.2

b=2.0

c=4

d=21

print(a/4)      =2.3

print(a//4)      =2  (floor division -not include the digits after decimal)

print(b**c)      =16  (**-raised to power)

print(d//b)      =10 (floor division -not include the digits after decimal)

Similar questions