Monday, 15 December 2025

Python Beginner's Assignment: Day 1

 


 

Q.1 Create variables to store your name, age, height, and student status. Print their values and data types.

Q.2 Assign two integer variables and one float variable. Perform addition and print the result.

Q.3 Take an integer input from the user, convert it to a float, and display both values.

Q.4 Take a float number from the user and convert it into an integer. Print the result.

Q.5 Take a number as input (string type) and convert it into an integer, then add 10 and display the result.

Q.6 Ask the user to enter their name and age, then print a message like:
"Hello Rahul, you are 20 years old."

Q.7 Take two numbers as input from the user and print their sum, difference, product, and division.

Q.8 Take two numbers from the user and display:

  • Remainder using %
  • Power using **

Q.9 Write a program to calculate the area of a rectangle using user input for length and width.

Q.10 Initialize a variable with value 10. Use += to add 5 and print the result.

Q.11 Initialize a variable with value 20. Use -= to subtract 8 and print the final value.

Q.12 Create a variable with value 4. Use *= and then /= operators sequentially and print the results.


0 Comments:

Post a Comment

Popular Posts

Categories

100 Python Programs for Beginner (118) AI (162) Android (25) AngularJS (1) Api (6) Assembly Language (2) aws (27) Azure (8) BI (10) Books (254) Bootcamp (1) C (78) C# (12) C++ (83) Course (84) Coursera (299) Cybersecurity (28) Data Analysis (24) Data Analytics (16) data management (15) Data Science (227) Data Strucures (14) Deep Learning (77) Django (16) Downloads (3) edx (21) Engineering (15) Euron (30) Events (7) Excel (17) Finance (9) flask (3) flutter (1) FPL (17) Generative AI (49) Git (6) Google (47) Hadoop (3) HTML Quiz (1) HTML&CSS (48) IBM (41) IoT (3) IS (25) Java (99) Leet Code (4) Machine Learning (199) Meta (24) MICHIGAN (5) microsoft (9) Nvidia (8) Pandas (12) PHP (20) Projects (32) Python (1223) Python Coding Challenge (905) Python Quiz (351) Python Tips (5) Questions (2) R (72) React (7) Scripting (3) security (4) Selenium Webdriver (4) Software (19) SQL (45) Udemy (17) UX Research (1) web application (11) Web development (7) web scraping (3)

Followers

Python Coding for Kids ( Free Demo for Everyone)