For loop creative project
For loop creative project
21
4.3K
For loop creative project
ANGELAXU4
ANGELAXU4
App
Published on Dec 3, 2021Made with Python

This replit consist of while loops and for loops and the goal is to display all the numbers from 1-100 except for one number and have the user input the missing number. The only way to exit the loop is to provide the missing number.

Similar apps
57comments
to comment
langcao
langcao2 hours ago

the first time it was 52. The second time it is also 52. Is it always 52?

Online-TypingTy
Online-TypingTy13 hours ago

Nice post. I found this is an informative and interesting post, so i think it is very useful and knowledgeable. I am glad to read this post hope your next article is are so useful for me so you are meet in next process for more information click this link below: -Typing Speed Test Online Mock English Typing Test Typing Test App Download Online Punjabi Typing Test Raavi Font 3-Min Typing Test English Typing Test-2 Online Typing Test-5 Typing Test Speed Test-10 Minutes 10-Min Typing Test Chsl Typing Test Cpct Hindi Typing Test Online Typing Test For-5 Minutes Numerical Typing Test Computer Typing Test Online Typing Test-3 Minute Typing Test Online Hindi

Sweta..........

NathanOrtiz
NathanOrtiz1 day ago

First try it was 52. At first i thought I wasnt counting right.🤣

timothyKR
timothyKR4 days ago

after 5 random tries

RyanZ120
RyanZ1206 days ago

from random import choicefrom printf import printffrom get_guess import get_guessfrom update_dashes import update_dashesimport nltknltk.download("words", quiet=True)from nltk.corpus import wordswords = words.words()secret_word = choice(words).lower()dashes = "-" * len(secret_word)guesses_left = len(secret_word)BRIGHT_RED = "\u001b[31;1m"BRIGHT_GREEN = "\u001b[32;1m"BOLD = "\033[1m"ITALIC = "\033[3m"RESET_ALL = "\u001b[0m"printf(f"DO NOT USE CAPITALS; CAPITALS DON'T WORK \n")while guesses_left > 0 and dashes != secret_word: printf(f"{dashes}\n{guesses_left} incorrect guesses left.\n") guess = get_guess() dashes = update_dashes(secret_word, dashes, guess) if guess in secret_word: printf( f"The letter is {BRIGHT_GREEN}{ITALIC}in{RESET_ALL} the secret word.\n\n", pause=0.025) else: printf( f"The letter is {BRIGHT_RED}{ITALIC}not in{RESET_ALL} the secret word.\n\n", pause=0.025) guesses_left -= 1if guesses_left != 0: printf(f"Congrats, you win. The word was {BOLD}{secret_word}{RESET_ALL}.\n")else: printf(f"Sorry, you lost. The word was {BOLD}{secret_word}{RESET_ALL}.\n")

POWERMAN101
POWERMAN1017 days ago

its always 52

cdCreepArghhh
cdCreepArghhh2 weeks ago

choose a random number instead, u just go to main.py and get the answer

MandoBoy
MandoBoy2 weeks ago

boring

TheMagicIL
TheMagicIL2 weeks ago

I created a game about your creative project,do you like it?https://replit.com/@TheMagicIL/Find-the-missing-number-game

ThomasPradayrol
ThomasPradayrol2 weeks ago

Good

RollPitchYaw
RollPitchYaw2 weeks ago

It's always 52

alexwpython
alexwpython2 weeks ago

I won it was ez

Namelastname5
Namelastname53 weeks ago

i.......................................... i broke it

RosalinaXue
RosalinaXue3 weeks ago

The first one is 52

Carter028
Carter0283 weeks ago

This one I created is more fun, I think y'all will like it:https://replit.com/@Carter028/What-number-is-on-my-mind

AbdallahArham
AbdallahArham3 weeks ago

52

RhinoRunner
RhinoRunner1 month ago

You should make the missing number random so that people can't look at the code for answers and they can do it more than once.

Ethan2021Replit
Ethan2021Replit1 month ago

Pretty easy but great job. :)

1 month ago

It's the same number everytime bruh

WilliamPalmisa1
WilliamPalmisa11 month ago

You can just look at the ones place for the missing number instead of looking at everything as a whole

LeoMosley
LeoMosley1 month ago

Made some changes to the code: https://replit.com/@LeoMosley/Guess-the-Number. Should make the game slighty harder and slighty better formated. Hope you like it.

mkcodes
mkcodes1 month ago

52 !!!

memoryleakage
memoryleakage1 month ago

You could make this 10x harder by using the random module when you're assigning "except_number" and then modulating "i" to the "except_number" variable.

And so forth.

DellWithGaming
DellWithGaming1 month ago

52

JohnMathew3
JohnMathew31 month ago

Missing number is 52Found out by this line of code in main.py:except_number = 52

While the while loop is running , it does not print that number because of the condition of the if statement

I think using the random module could be used to make this game much harder

TheDNAHero
TheDNAHero1 month ago

You… could’ve just used secrets

PixelRunner
PixelRunner1 month ago

it seemed to have skipped from 51 to 53, thus implying that the missing number is 52.

therefore I think that the missing number is 12

shadowsanninja9
shadowsanninja91 month ago

Hack found, click "Show files", click "main.py", find "except_number", then find the number next to it, and that's your answer!

JakeCohen5
JakeCohen51 month ago

*You're out of the loop :)

elijahdg
elijahdg1 month ago

didnt do error handling silly >:(

WeirdBoi12408
WeirdBoi124081 month ago

You should've used the random module.

Sazgr
Sazgr1 month ago

guess 47!

SomeOSCMember
SomeOSCMember1 month ago

94 also seems to be missing 🤔