<jupyter_start><jupyter_text>inputs: 2. where are you from ?3. Place or thing4. Enter an adjective like full5. Enter something that rhymes with 4.6. A word that rhymes with 2.There once was a man from 2.nantucketWho used to live in a 3. bucketThe 3.bucket got 4.full, he gave it a 5.pullAnd now he is are stuck a 6. tucket!<jupyter_code>print("Mike's Limerick Generator 1.0")
you_are_from = input("Where are you from? ")
place_or_thing = input("Enter a place or a thing: ")
adj = input("Enter an adjective like full or empty or soft: ")
rhymes_with_adj = input(f"Enter something that rhymes with {adj}: ")
rhymes_with_from = input(f"Enter something that rhymes with {you_are_from}: ")
print("============")
print(f"There once was a man from {you_are_from}.")
print(f"Who used to live in a {place_or_thing}.")
print(f"The {place_or_thing} got {adj}, he gave it a {rhymes_with_adj}")
print(f"And now he is stuck a {rhymes_with_from}!")<jupyter_output>Mike's Limerick Generator 1.0
Where are you from? cork
Enter a place or a thing: pork
Enter an adjective like full or empty or soft: dumb
Enter something that rhymes with dumb: thumb
Enter something that rhymes with cork: stork
============
There once was a man from cork.
Who used to live in a pork.
The pork got dumb, he gave it a thumb
And now he is stuck a stork!
{'fraction_non_alphanumeric': 0.1033434650455927, 'fraction_numerical': 0.012917933130699088, 'mean_word_length': 4.8533333333333335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '85785', 'license': 'MIT', 'n_tokens_mistral': 459, 'n_tokens_neox': 439, 'n_words': 195, 'path': 'ist256-in-class-examples/Lesson02-Input-And-Output.ipynb', 'repo_name': 'IST256-classroom/2019-fall-learn-python-mafudge', 'size': '1316'}