File: 1642089538731.jpg–(108.97KB, 640x913, drmario.png)%3Ca%20href%3D%22src%2F1642089538731.jpg%22%20onclick%3D%22return%20expandFile%28event%2C%20%271600%27%29%3B%22%3E%3Cimg%20src%3D%22src%2F1642089538731.jpg%22%20width%3D%22640%22%20style%3D%22max-width%3A%2085vw%3Bheight%3A%20auto%3B%22%3E%3C%2Fa%3E
Report post - No.1600
[
Reply]
post good games
Report post - No.1590
[
Reply]
Afoddj ahahaahahhaaha you fucking suck I hate u assholr dumb who’re
Report post - No.1587
[
Reply]
Ngw how do I ask my crush for her phone number
And if I do get it should I post it on /b/
File: 1641919862323.jpg–(155.68KB, 900x386, 53011EA1-2048-4047-843E-7CA45ACA1B9B.jpeg)%3Ca%20href%3D%22src%2F1641919862323.jpg%22%20onclick%3D%22return%20expandFile%28event%2C%20%271588%27%29%3B%22%3E%3Cimg%20src%3D%22src%2F1641919862323.jpg%22%20width%3D%22900%22%20style%3D%22max-width%3A%2085vw%3Bheight%3A%20auto%3B%22%3E%3C%2Fa%3E
Report post - No.1588
[
Reply]
Money
Report post - No.1584
[
Reply]
# Imports the random library
import random
# creates the list of words
wordList = ["cat", "hat", "pat", "lad", "mad", "dog", "log"]
# selects a random word and defines the randomWord var as it
randomWord = random.choice(wordList)
# asks the user for the an input, and defines the userGuess var as that input
userGuess = input("Guess the 3 letter word! \n")
# creates the numberOfGuesses var as zero so i don't forget to later
numberOfGuesses = int(0)
# repeat while the answer is not correct
while userGuess != randomWord:
# adds one to the user's guesses
numberOfGuesses = numberOfGuesses + 1
# if the user's guess amount is 1, print accordingly
Post truncated. Click Reply to view.