1. What function do we use to display a message on the screen? |
2. What will the following code display? print("Hello, world!") |
3. What function do we use to get a message from the user? |
4. What will the following code display? print("My age is " + 25) |
5. What function converts a string (string) to integer (int)? |
6. What will the following code display? age = int(input("Enter your age: "))
print(age + 5) |
7. What happens when a user gives his age using the input() function? |
8. Which of the following symbolizes the comments to Python? |
9. What will the following code display? name = input("Enter your name: ")
print("Hello, " + name) |
10. Which of the following is not a valid variable name? |
11. What will the following code display?print("I am " + str(25) + " years old.") |
12. Which of the following data types is not valid? |
13. Which of the following are we using to add a string with a number? |