You’ll want to make sure you have VSCode running on Kali:
Challenge/Checkpoint:
If you can write this program without directions, please do that.
- No ChatGPT for these proficiency checks.
- You can use ChatGPT for the rest of the year, I promise!
A document with helpful information is linked below if you need help.
Write a program that does the following:
- Asks the user to type a number between 1-100 and reads that value to a variable.
- Generates a random number between 1-100 and saves that to a variable.
- The program should print the statement:
- You picked (user_number) and (random_number) was generated.
- Print a regular string with variables typecast.
- The program should print the same statement again:
- You picked (user_number) and (random_number) was generated
- Print it the second time using an f-string
- The program should then check whether the user guessed correctly using a series of ‘if’ statements.
- If the user’s guess was too low, the program should print
- If the user’s guess was too high, the program should print
Help_Sheet: Check 01 Variables, Types, and Conditionals