TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿtoÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do not ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿtoÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do not ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do not ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do not ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how toÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do not ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how toÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do not ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do not ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do not ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do not ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do not ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
05AB1E, 7374 bytes
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
Working on itSee this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".
05AB1E, 74 bytes
TL # Push a list in the range [1,10]
Ω # Pop and push a random value from this list
ÐD # Triplicate + Duplicate, so 4 copies are on the stack
≠ # Check if the top copy is NOT equal to 1 (0 if 1; 1 if [2,10])
's×ばつ '# Repeat "s" that many times
s # Swap so one random integer copy is at the top again
I # Push the input
8.$ # Remove the first 8 characters ("How do I")
̈ # Remove the last character ("?")
© # Store this verb in variable `®` (without popping)
"€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" # Push dictionary string "how to ÿ in ÿ easy stepÿ!\n",
# where the `ÿ` are filled with the top three values on the stack
# from left to right
ˆ # Pop and add this string to the global_array
G # Pop another random copy, and loop `N` in the range [1, n):
® # Push the verb from variable `®`
N # Push `N`
"Š\ ÿ - Do€–ÿ." # Push dictionary string "step ÿ - Do ÿ.",
# where the `ÿ` are filled with the top two values again
ˆ # Pop and add this string to the global_array
} # After the loop:
® # Push the verb again
.a # Sentence capitalize it
s # Swap so another random integer copy is at the top of the stack
"Š\ ÿ -ÿ." # Push dictionary string "step ÿ - ÿ.",
# where the `ÿ` are once again filled automatically
ˆ # Pop and push this string to the global_array as well
̄ # Then push the global_array
.a # Sentence capitalize each string (without changing existing caps)
» # And join this list by newlines
# (after which the result is output implicitly)
See this 05AB1E tip of mine (section How to use the dictionary?) to understand why "€ß€„ÿ€† ÿ‡šŠ\ÿ!\n" is "how to ÿ in ÿ easy stepÿ!\n"; "Š\ ÿ - Do€–ÿ." is "step ÿ - Do ÿ."; and "Š\ ÿ -ÿ." is "step ÿ - ÿ.".