Page 244 - CTS - CSA TP - Volume 2
P. 244
COMPUTER SOFTWARE APPLICATION - CITS
Related Exercises:
Here are the questions related to writing and testing a Python program to demonstrate print statements, comments,
and different types of variables:
1 Print Statement: Write a Python program to display the message “Welcome to CSA_CITS!” using the print
statement.
2 Comments: Create a Python program with both single-line and inline comments. Provide comments explaining
the purpose of the code.
3 Integer Variable: Write a Python program that declares an integer variable (mark) and prints a message
including the mark.
4 Float Variable: Develop a Python program with a float variable (side) representing the side of a square. Print
a message displaying the side.
5 String Variable: Create a Python program declaring a stringvariable (city_name). Print a message including the
city_name.(Eg. You are from Delhi).
229
CITS : IT & ITES - Computer Software Application - Exercise 122 CITS : IT & ITES - Computer Software Application - Exercise 122