Variables and Data Types

1. Write a Python program to store and display student information using different data types ?

2. Write a Python program to identify the data type of different user inputs ?

3. Write a Python program to calculate and display the memory size occupied by different datatypes ?

4. Write a Python program to classify a given value as Integer, Float, Boolean, or String ?

5. Write a Python program to demonstrate mutable and immutable data types ?

6. Write a Python program to accept student details and display the value along with its corresponding data type ?

7. Write a Python program to calculate the total, average, and percentage of a student using variables of different data types?

8. Write a Python program to store employee details using different data types and display them in a formatted report?

9. Write a Python program to swap two numbers using variables without using a third variable ?

10. Write a Python program to store product details such as product name, product ID, price, and stock quantity using appropriate data types and display them in a formatted report ?

11. Write a Python program to accept employee information and calculate annual salary while demonstrating the use of integer, float, string, and boolean data types ?

12. Write a Python program to compare the data types and memory addresses of different variables using the id() function ?

13. Write a Python program to store and display details of a vehicle registration system using multiple data types ?

14. Write a Python program to demonstrate dynamic typing by assigning different types of values to the same variable and displaying the resulting data type after each assignment ?

15. Write a Python program to create a student database record containing name, roll number, CGPA, and placement status using suitable data types ?

Previous Topic print(), input(), and Syntax Next Topic Type Conversion