Exercise 1: Time Machine Simulator

Objective: To build a time-traveling program that allows users to travel forward or backward in time in fixed intervals.
Problem statement: You are to create a "Time Machine" simulator. Users can select if they want to travel into the future or the past, and then specify the number of years they want to travel.

Requirements:
Use a for loop to count the years as they pass by
Provide an engaging narrative for the time-travel experience(describe what the world looks like in different eras).

Sample output:
Welcome to the Time Machine!
Would you like to travel to the future or the past? (Enter 'future' or 'past'): future
How many years would you like to travel into the future? 3

Traveling to the future...
Year 1: Electric cars are now the standard.
Year 2: AI-powered robots are common in households.
Year 3: Space tourism has become affordable.

Welcome to the year 2026! Enjoy your stay!

Welcome to the Time Machine!

Would you like to travel to the future or the past? (Enter 'future' or 'past'): future
How many years would you like to travel into the future? 3

Traveling to the future...
Year 1: Electric cars are now the standard. The streets are filled with sleek and silent vehicles, free from harmful emissions. Charging stations are abundant, making it convenient for everyone to own and operate electric cars.
Year 2: AI-powered robots are common in households. These robots assist with household chores, cooking meals, and even provide companionship to those who live alone. They are intelligent and can learn from their interactions, making them indispensable members of many households.
Year 3: Space tourism has become affordable. Many people can now experience the thrill of space travel, exploring other planets and witnessing the beauty of the universe firsthand. Shuttle services and space hotels offer various packages to suit every individual's budget and preferences.

Welcome to the year 2026! Enjoy your stay!