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

Python Basics Revision Worksheet IX

The document is a revision worksheet for Class IX focusing on Artificial Intelligence, specifically the introduction to Python. It includes a series of questions and programming tasks related to Python concepts such as data types, operators, control structures, and functions. The worksheet aims to assess students' understanding of Python programming basics.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Python Basics Revision Worksheet IX

The document is a revision worksheet for Class IX focusing on Artificial Intelligence, specifically the introduction to Python. It includes a series of questions and programming tasks related to Python concepts such as data types, operators, control structures, and functions. The worksheet aims to assess students' understanding of Python programming basics.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Revision Worksheet

Class IX
Artificial Intelligence
Unit-V(Part B)- ”Introduction to Python”

1. What is Python?

2. Write any two features of Python.

3. What is an interpreter?

4. Write the correct file extension for a Python program.

5. Identify whether Python is case-sensitive or not.

6. Write Python code to store:

o Your age

o Your name

7. Name the following data types:

a = 10

b = 3.5

c = "Python"

d = True

8. What is type casting? Give one example.

9. Write a program to input a number and print it.

10. Write a program to input two numbers and print their sum.

11. What is the use of the print() function?

12. Write the output of the following:

x = 10

y=3

print(x + y)

print(x // y)

print(x % y)

13. Name the operators used for:

• Addition

• Comparison

• Logical AND
14. Write a program to check whether a number is positive or negative.

15. Write a program to check whether a number is even or odd.

16. What is the difference between if and if-else?

17. Write a program to print numbers from 1 to 10 using a for loop.

18. Write a program to print the table of 5.

19. Which loop is used when the number of iterations is known?

20. What is a keyword?

21. Write any two Python keywords.

22. What is an error?

23. What is debugging?

24. Write a program to input marks and print:

• "Pass" if marks ≥ 40

• "Fail" if marks < 40

You might also like