Day 1 challenge 30 Day Basic to Pro in python

Target 1: Master Python (Basics to Advanced)

Deadline: 30 Days

(1 Month)

1. Week 1 (Basics)

Complete: Variables, Loops, Conditionals,

Functions.Daily Goal: Solve 3-5 small coding problems

and write 1 program based on a real-life scenario.Deadline

7 Days from today.2.

Week 2 (Intermediate):

Focus: Lists, Dictionaries, Tuples, Strings, File Handling.

Mini-Project: Create a file-based student record system.

Deadline: 14 Days from today.3. Week 3 (Advanced):Learn: OOP (Classes, Objects, Inheritance, Polymorphism), Exception Handling.

Mini-Project: Build a basic Expense Tracker App.Deadline: 21 Days from today.4. Week 4 (Wrap-Up):

Learn: Modules, Libraries (like NumPy, Pandas basics), APIs.Mini-Project:

Create a weather app using a free API.Deadline: 30 Days from today.—Target 2: Problem-Solving Skills (DSA)

Step 1 (First 2 Weeks):Learn: Arrays, Strings, Searching, and Sorting.Solve 20 problems from platforms like HackerRank or LeetCode

15 Days from today.2. Step 2 (Next 2 Weeks):Learn: Recursion, Stack,

Queue.Solve 20 more problems on these topics.Deadline: 30 Days from today.3. Final Step (Last 15 Days)

Focus: Advanced DSA topics like Trees and Graphs.Solve 20-30 problems concepts.Deadline: 45 Days

Now start Day 1

Day 1: Python Basics – Variables and Data Types

1. Variables and Data Types:Variables store information.

For example:

name = “Rohit” # String

age = 20 # Integer

is_student = True # Boolean

print(name, age, is_student)

2. Practice Problems:

Problem 1: Store your name, age, and whether you’re a student in variables and print them.

Example:

name = input(“Enter your name: “)

age = int(input(“Enter your age: “))

is_student = input(“Are you a student? (True/False): “)

print(f”Name: {name}, Age: {age}, Student: {is_student}”)

Problem 2: Calculate the area of a rectangle.

length = float(input(“Enter length of the rectangle: “))

breadth = float(input(“Enter breadth of the rectangle: “))

area = length * breadth

print(f”The area of the rectangle is: {area}”)

Problem 3: Create a list of 5 trip items and print them.

trip_items = [“Clothes”, “Shoes”, “Water Bottle”, “Camera”, “Snacks”]

print(“Items to take on a trip:”, trip_items)

3. Mini Exercise:Write a program to check if someone is a teenager (13-19 years):

age = int(input(“Enter your age: “))

if 13 <= age <= 19:

print(“You are a teenager.”)

else:

print(“You are not a teenager.”)

follow for python full course

Leave a Reply

Your email address will not be published. Required fields are marked *