input
stringclasses
10 values
text
stringclasses
10 values
output
stringclasses
10 values
instruction
stringclasses
10 values
Setting up your daily to-do list...
Help me set up my daily to-do list! Setting up your daily to-do list... ```python tasks = [] while True: task = input('Enter a task or type 'done' to finish: ') if task == 'done': break tasks.append(task) print(f'Your to-do list for today: {tasks}') ```
```python tasks = [] while True: task = input('Enter a task or type 'done' to finish: ') if task == 'done': break tasks.append(task) print(f'Your to-do list for today: {tasks}') ```
Help me set up my daily to-do list!
Creating a shopping list...
Create a shopping list based on my inputs! Creating a shopping list... ```python shopping_list = {} while True: item = input('Enter an item or type 'done' to finish: ') if item == 'done': break quantity = input(f'Enter the quantity for {item}: ') shopping_list[item] = quantity print(f'Your shopping list: {shopping_list}') ```
```python shopping_list = {} while True: item = input('Enter an item or type 'done' to finish: ') if item == 'done': break quantity = input(f'Enter the quantity for {item}: ') shopping_list[item] = quantity print(f'Your shopping list: {shopping_list}') ```
Create a shopping list based on my inputs!
Calculating weekly phone usage...
Calculate how much time I spend on my phone per week! Calculating weekly phone usage... ```python total_time = 0 for i in range(1, 8): time = float(input(f'Enter phone usage in hours for day {i}: ')) total_time += time print(f'You spend approximately {total_time} hours per week on your phone.') ```
```python total_time = 0 for i in range(1, 8): time = float(input(f'Enter phone usage in hours for day {i}: ')) total_time += time print(f'You spend approximately {total_time} hours per week on your phone.') ```
Calculate how much time I spend on my phone per week!
Splitting the bill...
Help me split the bill among my friends! Splitting the bill... ```python total_bill = float(input('Enter the total bill amount: ')) friends_count = int(input('Enter the number of friends: ')) per_person = total_bill / friends_count print(f'Each person should pay {per_person}') ```
```python total_bill = float(input('Enter the total bill amount: ')) friends_count = int(input('Enter the number of friends: ')) per_person = total_bill / friends_count print(f'Each person should pay {per_person}') ```
Help me split the bill among my friends!
Organizing your movie list...
Organize my movie list into genres! Organizing your movie list... ```python movie_list = {} while True: genre = input('Enter a movie genre or type 'done' to finish: ') if genre == 'done': break movie = input(f'Enter a movie for the {genre} genre: ') movie_list.setdefault(genre, []).append(movie) print(f'Your organized movie list: {movie_list}') ```
```python movie_list = {} while True: genre = input('Enter a movie genre or type 'done' to finish: ') if genre == 'done': break movie = input(f'Enter a movie for the {genre} genre: ') movie_list.setdefault(genre, []).append(movie) print(f'Your organized movie list: {movie_list}') ```
Organize my movie list into genres!
Calculating the average rating of your book collection...
Calculate the average rating of my book collection! Calculating the average rating of your book collection... ```python ratings = [] while True: rating = input('Enter a book rating or type 'done' to finish: ') if rating == 'done': break ratings.append(float(rating)) average_rating = sum(ratings) / len(ratings) print(f'The average rating of your book collection is {average_rating}') ```
```python ratings = [] while True: rating = input('Enter a book rating or type 'done' to finish: ') if rating == 'done': break ratings.append(float(rating)) average_rating = sum(ratings) / len(ratings) print(f'The average rating of your book collection is {average_rating}') ```
Calculate the average rating of my book collection!
Creating a playlist...
Create a playlist based on my mood! Creating a playlist... ```python mood = input('What's your mood today? ') playlist = [] while True: song = input(f'Enter a song that fits your {mood} mood or type 'done' to finish: ') if song == 'done': break playlist.append(song) print(f'Your {mood} playlist: {playlist}') ```
```python mood = input('What's your mood today? ') playlist = [] while True: song = input(f'Enter a song that fits your {mood} mood or type 'done' to finish: ') if song == 'done': break playlist.append(song) print(f'Your {mood} playlist: {playlist}') ```
Create a playlist based on my mood!
Finding the best deals...
Help me find the best deals on my shopping list! Finding the best deals... ```python best_deals = {} while True: item = input('Enter a shopping item or type 'done' to finish: ') if item == 'done': break price = float(input(f'Enter the best price you found for {item}: ')) best_deals[item] = price print(f'The best deals for your shopping list: {best_deals}') ```
```python best_deals = {} while True: item = input('Enter a shopping item or type 'done' to finish: ') if item == 'done': break price = float(input(f'Enter the best price you found for {item}: ')) best_deals[item] = price print(f'The best deals for your shopping list: {best_deals}') ```
Help me find the best deals on my shopping list!
Calculating monthly savings for your vacation...
Calculate how much I need to save per month for my vacation! Calculating monthly savings for your vacation... ```python vacation_cost = float(input('Enter the total cost of your vacation: ')) months_left = int(input('Enter the number of months until your vacation: ')) monthly_savings = vacation_cost / months_left print(f'You need to save {monthly_savings} per month for your vacation.') ```
```python vacation_cost = float(input('Enter the total cost of your vacation: ')) months_left = int(input('Enter the number of months until your vacation: ')) monthly_savings = vacation_cost / months_left print(f'You need to save {monthly_savings} per month for your vacation.') ```
Calculate how much I need to save per month for my vacation!
Determining the most efficient route...
Determine the most efficient route for my errands! Determining the most efficient route... ```python locations = [] while True: location = input('Enter a location for your errands or type 'done' to finish: ') if location == 'done': break locations.append(location) # Assuming first location is the starting point print(f'The most efficient route: {locations[0]} -> {' -> '.join(sorted(locations[1:]))} -> {locations[0]}') ```
```python locations = [] while True: location = input('Enter a location for your errands or type 'done' to finish: ') if location == 'done': break locations.append(location) # Assuming first location is the starting point print(f'The most efficient route: {locations[0]} -> {' -> '.join(sorted(locations[1:]))} -> {locations[0]}') ```
Determine the most efficient route for my errands!
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
31
Edit dataset card