<jupyter_start><jupyter_text><jupyter_code><jupyter_output><empty_output><jupyter_text>Rental Car<jupyter_code>cars = input('What kind of rental car you would like? ')
print('Let me find you a ' + cars )<jupyter_output>What kind of rental car you would like? BMW
Let me find you a BMW<jupyter_text>Restaurant Seating<jupyter_code>seatings = input('How many people are in your dinner group? ')
seatings = int(seatings)
if seatings >= 8:
  print('You will have to wait for a table ')
else:
  print('Take your seats. ')<jupyter_output>How many people are in your dinner group? 3
Take your seats.<jupyter_text>Multiples of Ten<jupyter_code>number = input('Enter a number, and I will tell you if it is multiple of 10 or not')
number = int(number)
if number % 10 == 0:
  print('the number ' + str(number) + 'is multiple of 10. ')
else:
  print('the number ' + str(number) + 'is not multiple of 10. ')<jupyter_output>Enter a number, and I will tell you if it is multiple of 10 or not15
the number 15is not multiple of 10.<jupyter_text>Pizza Toppings<jupyter_code>prompt = "Please enter the name of the pizza topping you wanna. "
prompt += "\n Enter 'quit' when you are done. "
while True:
  topping = input(prompt)
  if topping == 'quit':
    break
  else:
    print('I will add that topping to your pizza')<jupyter_output>Please enter the name of the pizza topping you wanna. 
 Enter 'quit' when you are done. Margarita
I will add that topping to your pizza
Please enter the name of the pizza topping you wanna. 
 Enter 'quit' when you are done. cheese
I will add that topping to your pizza
Please enter the name of the pizza topping you wanna. 
 Enter 'quit' when you are done. potato
I will add that topping to your pizza
Please enter the name of the pizza topping you wanna. 
 Enter 'quit' when you are done. extra cheese
I will add that topping to your pizza
Please enter the name of the pizza topping you wanna. 
 Enter 'quit' when you are done. quit<jupyter_text>Movie Tickets<jupyter_code>prompt = "Please enter your age.  "
prompt += "enter 'quit' when you are done"
while True: 
  age = input(prompt)
  if age == 'quit':
    break
  age = int(age)
  if age < 3:
        print("  You get in free!")
  elif age < 13:
        print("  Your ticket is $10.")
  else:
        print("  Your ticket is $15.")<jupyter_output>Please enter your age.  enter 'quit' when you are done21
  Your ticket is $15.
Please enter your age.  enter 'quit' when you are done15
  Your ticket is $15.
Please enter your age.  enter 'quit' when you are done10
  Your ticket is $10.
Please enter your age.  enter 'quit' when you are done5
  Your ticket is $10.
Please enter your age.  enter 'quit' when you are done2
  You get in free!
Please enter your age.  enter 'quit' when you are donequit<jupyter_text>Deli<jupyter_code>sandwich_orders = ['salmon', 'avocado', 'veggie', 'potato']
finished_sandwiches = []
while sandwich_orders:
    current_sandwich = sandwich_orders.pop()
    print(f"I'm working on your {current_sandwich} sandwich.")
    finished_sandwiches.append(current_sandwich)
for sandwich in finished_sandwiches:
    print(f"I made a {sandwich} sandwich.")<jupyter_output>I'm working on your potato sandwich.
I'm working on your veggie sandwich.
I'm working on your avocado sandwich.
I'm working on your salmon sandwich.
I made a potato sandwich.
I made a veggie sandwich.
I made a avocado sandwich.
I made a salmon sandwich.<jupyter_text>No Pastrami<jupyter_code>sandwich_orders = [
    'pastrami', 'veggie', 'grilled cheese', 'pastrami',
    'turkey', 'roast beef', 'pastrami']
finished_sandwiches = []

print("I'm sorry, we're all out of pastrami today.")
while 'pastrami' in sandwich_orders:
    sandwich_orders.remove('pastrami')

while sandwich_orders:
    current_sandwich = sandwich_orders.pop()
    print(f"I'm working on your {current_sandwich} sandwich.")
    finished_sandwiches.append(current_sandwich)

for sandwich in finished_sandwiches:
    print(f"I made a {sandwich} sandwich.")<jupyter_output>I'm sorry, we're all out of pastrami today.
I'm working on your roast beef sandwich.
I'm working on your turkey sandwich.
I'm working on your grilled cheese sandwich.
I'm working on your veggie sandwich.
I made a roast beef sandwich.
I made a turkey sandwich.
I made a grilled cheese sandwich.
I made a veggie sandwich.<jupyter_text>Dream Vacation<jupyter_code>name_prompt = "\nWhat's your name? "
place_prompt = "If you could visit one place in the world, where would it be? "
continue_prompt = "\nWould you like to let someone else respond? (yes/no) "

responses = {}

while True:
  
    name = input(name_prompt)
    place = input(place_prompt)

    responses[name] = place
    
    repeat = input(continue_prompt)
    if repeat != 'yes':
        break

print("\n--- Results ---")
for name, place in responses.items():
    print(f"{name.title()} would like to visit {place.title()}.")<jupyter_output>What's your name? Elene
If you could visit one place in the world, where would it be? Maldives

Would you like to let someone else respond? (yes/no) yes

What's your name? Zura
If you could visit one place in the world, where would it be? Rome

Would you like to let someone else respond? (yes/no) yes

What's your name? Liza
If you could visit one place in the world, where would it be? Paris

Would you like to let someone else respond? (yes/no) no

--- Results ---
Elene would like to visit Maldives.
Zura would like to visit Rome.
Liza would like to visit Paris.
{'fraction_non_alphanumeric': 0.08921389396709324, 'fraction_numerical': 0.007678244972577696, 'mean_word_length': 4.132270168855535, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '228508', 'license': 'MIT', 'n_tokens_mistral': 1831, 'n_tokens_neox': 1705, 'n_words': 739, 'path': 'chapter_7_.ipynb', 'repo_name': 'Ele2000/Chapter-7', 'size': '5470'}