Share your repls and programming experiences

← Back to all posts
My first REPL
[deleted]

Yasss bruhs, my first Repl!!! Some of you may know me on Scratch.mit.edu as HyperGamerStudios but now I am on repl because of my computer science class :D

(UPVOTE THIS FOR A COOKIE, also go follow me on Scratch for THREE cookies.(Note: MAY OR MAY NOT BE BROWSER COOKIES, lol))

This post has been locked
Comments
hotnewtop
pythoncoder347 (5)

Cool! I used to be on scratch.mit.edu too! In scratch, I am 123ravi321. I have a pong game in scratch but a pong in repl is coming soon!

badst (667)

Huge step up from scratch, congrats.
also you can use \n for a newline,
example: print("hello world\n")

[deleted]

:D @pepelaugh well I have to do it for school XD

badst (667)

@HyperGamerStuds Okay, well it's pretty good :)

[deleted]

Thx :) @pepelaugh

ThisUserTaken (235)

for example, if my birthday was in october 30th, you would say a wrong age. just add a bit more and you can fix that

ThisUserTaken (235)

this can be wrong. you should get the exact month. actually, you may even have to get the exact day.

elipie (372)

@HyperGamerStuds please do not ask for upvotes, as upvoting is only a way of liking something, which if people do not like it, they will not upvote, repl.it is not for upvotes but for coding and sharing programs (and plenty more) but its not about upvotes. So do not beg for upvotes in the future, or say something thats not going to happen(Like getting a cookie) so, please, please, PLEASE do not just post for upvotes post to share your code

Edit: also this is not scratch, so yeah
Edit-EDIT: also i just wanted to tell you before you started doing more coding on repl.it, that it is not for upvotes, and I know it is addictive to post something and get upvotes but sometimes that can lead you down the wrong paths.
EDIT EDIT EDIT: Also I am not telling u what to do, you can do whatever you want, Just dont put OR DIE as a threat. Because you CAN get banned for that

[deleted]

lol, it's a joke bruh @elipie

Muffinlavania (1444)

Suggestion, you want this program to be valid at all times?(Not just 2020) Change 2020 to datetime.datetime.year(I think) This will put the current year in place of 2020, which for now is 2020, but next year obviously it will be 2021. Also you have to import datatime

[deleted]

oof, doesn't work @Muffinlavania

Muffinlavania (1444)

@HyperGamerStuds umm its something like that one second i will find it

Muffinlavania (1444)

@HyperGamerStuds oh you did datatime instead of datetime, sorry if i said that

[deleted]

hmm...still getting error codes @Muffinlavania

Muffinlavania (1444)

@HyperGamerStuds ummm i think the year thing is not an integer, im going to go test to see if there is an easy way to do it

Muffinlavania (1444)

@HyperGamerStuds lol i forgot something, add this
Instead of datetime.datetime.year
do datetime.datetime.today().year

[deleted]

@Muffinlavania Nice, it works! thank you!

[deleted]

/rWhoosh @Muffinlavania

[deleted]

Nice, but please don't advertise :) @Chizitelum

Chizitelum (22)

Fine, fine. But what is bad about advertising
@HyperGamerStuds

KeenanBusch (3)

May I have your scratch info?(just your profile link) I’m also a scratcher. I’m asking this so I can see some of your work. :)

[deleted]

scratch.mit.edu/users/hypergamerstudios :) I am followed by most of the top 1000 users :D @KeenanBusch

[deleted]

Altho don't judge on hordes.io, it's still in development so it is ABSOLUTELY HORRENDOUS @KeenanBusch

KeenanBusch (3)

I actually find it interesting @HyperGamerStuds

[deleted]

rlly? U like hordes.io?!? @KeenanBusch

KeenanBusch (3)

@HyperGamerStuds Sure, it is interesting. I made a comment in Scratch and I don’t know if you saw it, but can you make it mobile?

[deleted]

when was your comment? I haven't been online today @KeenanBusch

[deleted]

idk, I will have to look into making it mobile-friendly :) @KeenanBusch

[deleted]

Yep, lol, I haven't been on Scratch since last night :) @KeenanBusch

KeenanBusch (3)

That link doesn’t work @HyperGamerStuds
It gives me this:
“ We encountered an error. Please tell us what happened on our bugs reports page.”

KeenanBusch (3)

@HyperGamerStuds by the way, my username in scratch is Pizzacash21

zplusfour (881)

Please don't add a bad bio.
You'll get reported.

[deleted]

@ZDev1 huh?

zplusfour (881)

@HyperGamerStuds

Upvote this or die

This is bad

[deleted]

@ZDev1 but then I say lol jk

Pankak (48)

(UPVOTE THIS OR DIE) lol jk

I think I'd rather die

[deleted]

lol, me too @Pankak

VMTU (36)

nice, one thing though, the age may be invalid bc the persons birthday hasnt passed yet

[deleted]

@VMTU Thank u! but wait, I legit just posted this how'd u find it? lol

VMTU (36)

@HyperGamerStuds idk, i just checked share and got a early post lol

[deleted]

@VMTU lol thx :)

[deleted]

@VMTU ya, I haven't figured out how to also do it 100% accurate but it is pretty accurate usually :)

VMTU (36)

@HyperGamerStuds this will be your first upvote too, and first cycle

[deleted]

@VMTU :D thx!!

VMTU (36)

@HyperGamerStuds also, if you produce games on scratch, you might like pygame. A game plugin for python for making games! Ill invite you to repl and teach you some pygame

[deleted]

@VMTU :D, I don't usually use repl for recreational use but if u want u can talk to me about such concepts either on here or on Scratch! (especially check out my newest game hordes.io, it is highly advanced :))

[deleted]

@VMTU Also what's a cycle in Repl.it? I'm a very new user lol, so idk

VMTU (36)

@HyperGamerStuds ok, i havent used scrath in a while lol

VMTU (36)

@HyperGamerStuds idk tbh, kinda like a follower system. whenever you get upvoted you gain one, and when you answer a question you get five

[deleted]

@VMTU ooh, noice

[deleted]

@VMTU is VMTU ur scratch? (I an 900th most followed with 1660 followers :D)

VMTU (36)

@HyperGamerStuds lol i dont remeber my user, btw VMTU means:
V: Vita
M: Mega
T: Technologies
U: Unlimited, Thats my company name, But this account is old so its really just VMU, Vita Mega Unlimited

Kirit0 (23)

@HyperGamerStuds I can help you with any python projects you need. I am pretty fluent in the language so ill be glad to help ^-^ https://repl.it/teams/join/yldpasaoeixeoadyxdtoeuixjkiwyufh-DreamVTechno heres my team link too if you would like to join

[deleted]

:) thx but I don't think I need help, I can join ur team anyway tho!! @Kirit0

[deleted]

@VMTU WHOA I have 5 cycles now 😋

ThisUserTaken (235)

@HyperGamerStuds i just started posting two days ago and i have 99 cycles :)

DungeonMaster00 (171)

@HyperGamerStuds love2d is a 2d game engine for lua

its easier

Vandesm14 (2617)

Hey, we've unlisted this for now because it looks fairly low-effort. If you edit the description to add more info and/or add more to the code, reply to this comment and I’m happy to relist it!

Since this post is locked, you won't be able to reply to my comment. Feel free to email me at [email protected] instead.

Chizitelum (22)

cool I am on scratch too I am Adder12

[deleted]

noice, follow me perhaps? XD I make some really cool games :) @Chizitelum

hello1964 (26)

This can return a lot of errors if someone does not put a number as their input

hello1964 (26)

This is what I'd recommend:

 userInput = none
 def testInput(input) -> bool:
   try:
     int(input)
   except:
     return False
   else:
     if int(input) < 0 or >= datetime.datetime.today().year:
       return False
     else:
       return True

 firstTime = True
 while not(testInput(userInput):
   if firstTime = False:
     print("Invalid Year")
   userInput = input("What year were you born: ")

It asks you to input the year again is it cannot be converted to a string or the value is negative

hello1964 (26)

I also used to be on scratch but I abandoned that because python has more capability. If you want to find my scratch profile, I have the same username on scratch and repl.it

ReyesP (23)

Cool
Didn't know you can find age in repl.it
Didn't know you had a scratch.mit.edu.
I also have a main acount.
Though I don't post anything.

FahadKhan6 (0)

bruh u copied this from someone
i think

[deleted]

This was from my teacher for a project :) @FahadKhan6

Chizitelum (22)

I can give you some advice so that you don't have to be changing the minus date- 2020 - every year that passes

Chizitelum (22)

@Chizitelum reply and upvote me to improve this code

[deleted]

well, I already know how to do that on scratch.mit.edu :D @Chizitelum

Vandesm14 (2617)

@Chizitelum Please don't beg for upvotes