class 11 python Basic Worksheet No 1

Python Basics Worksheet No-1

1. Introduction to Python Syntax


Problem 1: Write a Python program to print "Hello, World!" on the screen.


Problem 2: Write a Python program to display your name, age, and country.



2. Variables and Data Types

Problem 3: Create a Python program that asks for the user's name and age, then prints a message saying "Hello [Name], you are [Age] years old."


Problem 4: Write a program to swap the values of two variables without using a third variable.


Problem 5: Write a program to swap the values of two variables  using a three variable.



3. Basic Operations

Problem 6: Write a Python program to calculate the area of a rectangle. The program should ask the user for the length and width of the rectangle and then display the area.


Problem 7: Write a Python program to calculate the area of a square. The program should ask the user for the side of the square then display the area.


Problem 8: Write a Python program to convert temperature from Celsius to Fahrenheit. The formula is: Fahrenheit=95×Celsius+32\text{Fahrenheit} = \frac{9}{5} \times \text{Celsius} + 32












Class 11 ip worksheet pdf Class 11 ip worksheet with answers Class 11 ip worksheet pdf download Cbse class 11 ip worksheet Class 11 IP Python practical questions with answers Class 11 MySQL Practical Questions with answers pdf

Post a Comment

0 Comments