Pseudocode:
import random
fetch user input on a lucky number
insert input into variable - "response"
new variable, random = randint
condition to check wheather random is our response
display results
Python Code:
import random
def main():
response = int(input("Guess my lucky number, its between 1 and 100: "))
lucky_number = random.randint(1,100)
if response == lucky_number:
print(f"Wow you're right, it is {lucky_number}")
else:
print("Sorry, Try Again")
main()
Reminder:
intended for python3 as i included the format f
also it could be done without the import, just manually insert a number
i'll leave the post mortum to you
Applying a bug fix: software update (patch)
Addressing a security flaw: software update (patch)
Improve ease of use: Software Update (new version)
Adding features: Software Update (new version)
This is what I believe the answer is! Hope this helped!