Activity 4 Part 2
In this video, we cover two essential Python programming exercises designed to enhance your coding skills using for loops, functions, lists, and conditionals. Exercise Set 2: Shopping List Application We build a Python program to manage a shopping list, where users can: Task 1: Create and print a list of items with their prices using a for loop. Task 2: Calculate the total price of all items in the shopping list. Task 3: Remove an item by name from the shopping list and print the updated list. This exercise helps you master list manipulation, for loops, and condition-based decision-making. Exercise Set 3: String Manipulation and Conditionals In this section, we dive into string processing: Task 1: Write a function that prints each sentence in a list and checks if it is a long or short sentence based on the number of words. Task 2: Count how many times a specific word appears across multiple sentences. By the end of this video, you'll gain practical experience working with strings, loops, and conditions in Python. Don't forget to like and subscribe for more coding tutorials and exercises! 🚀 #python #programming #forloops #functions #StringManipulation #ShoppingListApp #pythonforbeginners #learnpython
Download
0 formatsNo download links available.