TOPICS: Very able Variables, If you think for a while
1. Which data type is used in Python to store True or False values?
2. The list data type is used to store __________.
3. The process of checking a condition before executing a block of code is called __________.
4. Identify the invalid variable name:
a. name_of_student
b. StudentName
c. roll.no
d. roll_no
5. An if statement can have __________ block(s) of code inside it.
6. A person can travel by bus if they have a ticket or if they pay cash on the spot.
a. Which logical operator is used here?
b. Explain your answer.
7. Write a Python program to accept two numbers and print the greater number.
8. What is a nested if statement in Python? Give an example.
9. Write the syntax for the following:
a. Converting a string to integer
b. Finding the length of a string
10. Write down the functions of these operators, with examples:
a. %
b. <
