0% found this document useful (0 votes)
0 views2 pages

Week2 Python Study Plan

Uploaded by

hanaa amged
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

Week2 Python Study Plan

Uploaded by

hanaa amged
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

■ Week 2 – Python Study Plan

In Week 2, you will go deeper into Python by working with strings, loops, dictionaries, and writing
more complex functions. By the end of the week, you’ll create a simple contact book program.

Day 1 – Strings
• Learn string methods: lower(), upper(), replace(), split().
• Ask user for their name, print it in uppercase and lowercase.
• Challenge: Count how many vowels are in the name.

Day 2 – More on Loops


• Practice nested loops.
• Write a program that prints a triangle of stars using loops.
• Challenge: Write multiplication table (1 to 10).

Day 3 – Dictionaries
• Create a dictionary with keys: name, age, city.
• Print values using keys.
• Add a new key 'hobby' and update its value.

Day 4 – User Input Practice


• Write a program that asks the user for 3 favorite movies.
• Store them in a list.
• Print the list back in reverse order.

Day 5 – Advanced Functions


• Write a function that takes a list of numbers and returns the average.
• Write a function that returns the largest number from a list.
• Challenge: Write a function that reverses a string.

Day 6 – Error Handling


• Learn try/except for handling errors.
• Write a program that divides two numbers entered by user.
• If user enters 0 for divisor, print 'Cannot divide by zero.'

Day 7 – Mini Project: Contact Book


• Create a program where user can:
• - Add a new contact (name & phone number).
• - View all contacts.
• - Search for a contact by name.
• Use dictionary to store data.

You might also like