Share your repls and programming experiences

← Back to all posts
My First repl
cpiechocki (130)

SORRY IVE BEEN AFK FOR A LONG TIME! I FORGOT MY PASSWORD! LOL

This is my first repl. My brother helped me code this. I hope you like it. Upvote if you enjoy. Also i saw some comments (@HENRYMARTIN4) so here @HENRYMARTIN4 is awesome. Also my brother just told me how upvoting works.

THANKS FOR ALL THE UPVOTES

Commentshotnewtop
kbadrinath_tcsp (200)

just add spaces and overall refining to the text, otherwise nice first program

nN34398Ff (84)

you should add something like if hi > 7: print("Too high") and if hi < 7: print("Too low")

cpiechocki (130)

@nN34398Ff K i will considr it. Wait nvm

gameplayrawesom (127)

@nN34398Ff I think he tried it and got an error. Well so much for not giving up.

[deleted]

@nN34398Ff you are right

[deleted]

@nN34398Ff and if we answer incorrectly
reveal the answer
or give us another try.

nN34398Ff (84)

@gameplayrawesom He has almost as many cycles as you man

gameplayrawesom (127)

@nN34398Ff LOL. He makes 1 repl and gets 101. I cant believe this got more than space invaders!!

JosiahKnisely (30)

LOL, @gameplayrawesom, it's because he's 7 yrs. old.

gameplayrawesom (127)

@JosiahKnisely Yup that is probably why :facepalm

JosiahKnisely (30)

WAIT, IF I PRETEND THAT I'M 3 YRS. OLD I WILL GET 1,000,000 UPVOTES! #GeniusMoment

JosiahKnisely (30)

@PowerCoder :P Why do you get emoticons when I don't.

JosiahKnisely (30)

Oops, I meant emojis.

PowerCoder (560)

@JosiahKnisely win+. (if you have a windows computer).

LizFoster (592)

@JosiahKnisely HeY gUyS mY nAmE iS yOuNg ChIlD kId AnD i Am OnE yEaR oLd

JosiahKnisely (30)

@LizFoster He get 100000000000 upvotes! He da best!

LizFoster (592)

@JosiahKnisely !!!!1!!!!!1!111!!!!!!!!!!!111!!

hooray

techgeek680 (66)

i have a chromebook with emojis. @PowerCoder

epicman702 (186)

Good luck with ur coding!
Remember, everyone was once like you

techgeek680 (66)

i still am like her... im on repl.it for six days :0 @epicman702

epicman702 (186)

@techgeek680 Haha, good luck with your coding!

Nettakrim (361)

put a space after the guess my age

hi=input("guess my age ")

this way instead of it looking like

guess my age7

it looks like

guess my age 7

this just makes it look neater

NecroHacks (5)

Not bad! just make sure you refine your code so it doesn't look like: guess my age7.
Here are some ways:
Hi = input("Guess my age ")
or
Hi = input("Guess my age\n")
"\n" adds a new line

ShadedFlame (28)

@NecroHacks I always use "\n" Works great looks nice

ChristopherAndi (1)

I just put a space... lol looks fine to me that way
@JosiahKnisely

Warhawk947 (508)

ayyy congrats on 100 upvotes!

i never got that sob

ShadedFlame (28)

Ummm, 97 UPVOTES??? I'm gonna say I'm 3 an get 5,000 upvotes... WHAT IS THIS???

WyattWatkins (1)

NVM Ive been working at for an hour I just forgot the colon

Evanlicious (80)

Your boy be making upvotes out the printer! That aside, good work. My first program on Repl.it was a Python program that calculated stuff based on the sides of a polygon.

WyattWatkins (1)

Im trying to do the if hi == (X) but its not working

codeitfast (16)

You could print "guess my age", and then have an input underneath.

NarwhalFanatic (22)

Learned how to do if statements from this. Thanks!

chrisjacinto (0)

Great job on your first program! Hope you continue learning :)

PowerCoder (560)

I suggest doing something like this from line 5-9:

print("guess my age")
while True:
  if hi == ("7"):
    print("YOU ARE CORRECT!")
    break
  else:
    print("WRONG")

so that it'll loop

ernessola (0)

Welcome to Python!!!!

SimonDonckers1 (0)

Do you want to code sometime together my number is 0641358740

JosiahKnisely (30)

You should use /n after the guess my age. It looks more elegant and polished.

[deleted]

that is better...
from termcolor import cprint
cprint("Hello guys, this is my first repl...", 'yellow')
q = input("Guess my age\n")
if q == 7:
(tab)print("Correct!")

elif q == 8 or 6:
(tab)print("You are so close!")

nN34398Ff (84)

Oh gosh this has 64 upvotes oh man oh man
How???! Ha Ha, @cpiechocki has more upvotes than gameplayrawesome

KellerWorthen (29)

pretty good. You should try learning HTML

nN34398Ff (84)

is there a reason you picked the name cpiechokie?

[deleted]

you are good!
and for your age...
it is so good!

ShadedFlame (28)

Oh Wow 58 upvotes??? What!