Skip to content
Repl icon
For loop creative project
ANGELAXU4
ANGELAXU4
Published on May 27, 2022
#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 repls
Tic Tak Toe
Tic Tak Toe
RajuMiah
RajuMiah
Python Project showing Tic Tac Toe Game
#python
Flask server (inline)
Flask server (inline)See in the server! A whole server written in one line!
developers
developersPlace where you can upload projects! https://ww7.project-io.cf/projects
147comments
linajulie
linajulie2 days ago

Great info about loop creative projec.t Must watch this: https://www.youtube.com/watch?v=SN7DMtXCalg

KrivanM
KrivanM3 days ago

you should make the except_number random.

IsaacTiddle
IsaacTiddle3 days ago

I did it!

VideAndersson1
VideAndersson12 weeks ago

look i escaped the loop by just typeing enter if you dont want it to crash you should put an else or if

wolfieboy09
wolfieboy092 weeks ago

If you don't want people knowing that it is 52, you should add: from random import randint expect_number = randnt(1,100) # or more numbers if you wish

SaniyahMoseby
SaniyahMoseby3 weeks ago

its 101 and they say its not right

SEO-JinPARK
SEO-JinPARK2 months ago

You should change the missing number. EVERYBODY'S getting it.

govtexamguru
govtexamguru2 months ago
govtjobsapply
govtjobsapply2 months ago

luck after 5 random tries got https://www.govtjobsapply.com/

mnSwrslm
mnSwrslm2 months ago

وين اليوزرات

ParkerDejong
ParkerDejong2 months ago

That was easy

CampbellMartin
CampbellMartin2 months ago

Awesome! it's 52

ePiCgAmErBoI
ePiCgAmErBoI2 months ago

Nice game

EliteCoder123
EliteCoder1233 months ago

ayo lets goo

TinyTimBot
TinyTimBot3 months ago

I made something like this if anyone wants to try it out. (It was made BECAUSE of this project)

https://replit.com/@TinyTimBot/Guessing-number-game

QuandaleDingle69
QuandaleDingle693 months ago

import random and set "except_number = random.randint(0, 101)" and on line 5, where it says if i%52 != 0, replace the 52 with "except_number" ---> "if i%except_number!=0 " this would make it so the number is different everytime. :)

unknowner
unknowner3 months ago

You can set except_number randomly And replace 52 in for to except_number

EthanBailey12
EthanBailey123 months ago

ez, 52

BlueDev1
BlueDev13 months ago

i got 52 totally did not look at comments for awsners

jordanMk
jordanMk3 months ago

Not that hard. 52

PriyanshuDandap
PriyanshuDandap3 months ago

I got it. 52.

JameezPlays
JameezPlays3 months ago

fork where its not 52 all the time lmao https://replit.com/@JameezPlays/loop-thing-but-better

SgtAlex
SgtAlex3 months ago

its always 52

winnerwannabe2
winnerwannabe23 months ago

i diden't read the comments and just brute forced it. lol

TheHappyCow
TheHappyCow3 months ago

boring totaly not 52 all the time

CheeseTheRat
CheeseTheRat3 months ago

oh wow so cool i guessed 52 first try. Not like its always 52 or anything nope couldnt be

codeisfunsp
codeisfunsp3 months ago

in the thumbnail u mixed up your nad you're

CheeseTheRat
CheeseTheRat3 months ago

I mean its ok... but its always 52. Make it harder because rn its just straight up boring...

CheeseTheRat
CheeseTheRat3 months ago

Yeah it was 52...

lobear1412
lobear14123 months ago

I had to fork it to find the answer (52).

Edit: I made a version where the number is random https://replit.com/@lobear1412/except-one?v=1 here's how https://www.youtube.com/watch?v=dQw4w9WgXcQ

AJisawally
AJisawally4 months ago

I found it quite easily

Imeanbusiness
Imeanbusiness4 months ago

THIS IS SO BAD

VishwaShah3
VishwaShah34 months ago

hi

ninjaread99
ninjaread994 months ago

the problem is it can only have [the number] as the missing number, it never changes

plex7090
plex70904 months ago

Bruh this is some low quality garbage xD

DeAtHLoRd123
DeAtHLoRd1234 months ago

add a timer

AhmedAbdulwasiAB
AhmedAbdulwasiAB4 months ago

Loved it!

JagLaser
JagLaser4 months ago

very bork

IamYeeter1
IamYeeter14 months ago

Yeah, somethings wrong here. It's always 52.

RyanZ120
RyanZ1204 months ago

What it is all 52

langcao
langcao4 months ago

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

Online-TypingTy
Online-TypingTy4 months 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
NathanOrtiz4 months ago

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

timothyKR
timothyKR4 months ago

after 5 random tries

RyanZ120
RyanZ1204 months ago

from random import choice from printf import printf from get_guess import get_guess from update_dashes import update_dashes import nltk nltk.download("words", quiet=True) from nltk.corpus import words words = 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 -= 1 if 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")

DragonProgrammer
DragonProgrammer4 months ago

its always 52

cdCreepArghhh
cdCreepArghhh5 months ago

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

MandoBoy
MandoBoy5 months ago

boring

TheMagicIL
TheMagicIL5 months ago

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

ThomasPradayrol
ThomasPradayrol5 months ago

Good

RollPitchYaw
RollPitchYaw5 months ago

It's always 52

alexwpython
alexwpython5 months ago

I won it was ez

Namelastname5
Namelastname55 months ago

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

RosalinaXue
RosalinaXue5 months ago

The first one is 52

Carter028
Carter0285 months 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
AbdallahArham5 months ago

52

RhinoRunner
RhinoRunner5 months 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.

Kitty118
Kitty1185 months ago

Pretty easy but great job. :)

WilliamPalmisa1
WilliamPalmisa15 months ago

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

LeoMosley
LeoMosley5 months 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
mkcodes5 months ago

52 !!!

memoryleakage
memoryleakage6 months 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.

import random except_number = random.randint(1, 100) for i in range(1, 101): if i % except_number != 0: print(i)

And so forth.

DellWithGaming
DellWithGaming6 months ago

52

JohnMathew3
JohnMathew36 months ago

Missing number is 52 Found 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
TheDNAHero6 months ago

You… could’ve just used secrets

PixelRunner
PixelRunner6 months 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
shadowsanninja96 months 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
JakeCohen56 months ago

*You're out of the loop :)

elijahdg
elijahdg6 months ago

didnt do error handling silly >:(

WeirdBoi12408
WeirdBoi124086 months ago

You should've used the random module.

Sazgr
Sazgr6 months ago

guess 47!

SomeOSCMember
SomeOSCMember6 months ago

94 also seems to be missing 🤔