π Step 3: Define get_started function
- This function stores the name of the word file in a variable.
- Asks for user name.
- Prints:
Welcome to Wordle 101 [userName]
========================================================================
Rules
You have 6 guesses to figure out the solution.
All solutions are words that are 5 letters long.
Letters that have been guessed correctly are displayed in uppercase.
Letters that are in the word but have been guessed in the wrong location
are displayed in lowercase.
========================================================================- Returns file name.
π‘ Hint
- Use variables to store input from prompts
input().
- Copy and paste if needed.
- You can use
\nin a long string"..."to continue a sentence on a new line.
[userName]should be the name entered by the user.
βΉοΈ More Information
- You can use f-string formatting to print a variable in a string. This works for any variable type (e.g.Β
str,int).β Example
print(f"Hello {variable_name}!")
- You can use f-string formatting to print a variable in a string. This works for any variable type (e.g.Β
β Checker
Define get_started function
Type or paste your code and run.