"""
Topic 06: File Handling & JSON - MEDIUM Exercises (10)
"""
# Exercise 1: Write a function that counts how many words are in a text file.
# Write your code below:
# Exercise 2: Write a program that copies the content of one file to another.
# Write your code below:
# Exercise 3: Read a JSON file containing a list of products and calculate the total price.
# Assume products.json: [{"name": "A", "price": 10}, {"name": "B", "price": 20}]
# Write your code below:
# Exercise 4: Create a program that asks for user input and appends it to a 'log.txt' file with a timestamp.
# Hint: Use the 'datetime' module.
# Write your code below:
# Exercise 5: Find the longest word in a text file.
# Write your code below:
# Exercise 6: Write a function to reverse each line in a text file.
# Write your code below:
# Exercise 7: Merge three different text files into one.
# Write your code below:
# Exercise 8: Convert a CSV-style text file (e.g., name,age,city) into a list of dictionaries and save as JSON.
# Write your code below:
# Exercise 9: Write a program that deletes all lines in a file that contain a specific word.
# Write your code below:
# Exercise 10: Use json.loads() to parse a JSON string and print the values of all keys that are integers.
# Write your code below: