My first REPL
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))
Huge step up from scratch, congrats.
also you can use \n
for a newline,
example: print("hello world\n")
:D @pepelaugh well I have to do it for school XD
@HyperGamerStuds Okay, well it's pretty good :)
Thx :) @pepelaugh
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
this can be wrong. you should get the exact month. actually, you may even have to get the exact day.
@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
lol, it's a joke bruh @elipie
@HyperGamerStuds i know sorry, lol
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
oof, doesn't work @Muffinlavania
@HyperGamerStuds umm its something like that one second i will find it
@HyperGamerStuds oh you did datatime instead of datetime, sorry if i said that
hmm...still getting error codes @Muffinlavania
@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
@HyperGamerStuds lol i forgot something, add this
Instead of datetime.datetime.year
do datetime.datetime.today().year
@Muffinlavania Nice, it works! thank you!
@HyperGamerStuds yeeeeeeeee
/rWhoosh @Muffinlavania
see this other one
https://collreplit.chizitelum.repl.run
Nice, but please don't advertise :) @Chizitelum
Fine, fine. But what is bad about advertising
@HyperGamerStuds
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. :)
scratch.mit.edu/users/hypergamerstudios :) I am followed by most of the top 1000 users :D @KeenanBusch
Altho don't judge on hordes.io, it's still in development so it is ABSOLUTELY HORRENDOUS @KeenanBusch
I actually find it interesting @HyperGamerStuds
rlly? U like hordes.io?!? @KeenanBusch
@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?
when was your comment? I haven't been online today @KeenanBusch
idk, I will have to look into making it mobile-friendly :) @KeenanBusch
Actually, it was today @HyperGamerStuds
Yep, lol, I haven't been on Scratch since last night :) @KeenanBusch
That link doesn’t work @HyperGamerStuds
It gives me this:
“ We encountered an error. Please tell us what happened on our bugs reports page.”
@HyperGamerStuds by the way, my username in scratch is Pizzacash21
Please don't add a bad bio.
You'll get reported.
(UPVOTE THIS OR DIE) lol jk
I think I'd rather die
lol, me too @Pankak
nice, one thing though, the age may be invalid bc the persons birthday hasnt passed yet
@VMTU Thank u! but wait, I legit just posted this how'd u find it? lol
@HyperGamerStuds idk, i just checked share and got a early post lol
@VMTU lol thx :)
@VMTU ya, I haven't figured out how to also do it 100% accurate but it is pretty accurate usually :)
@HyperGamerStuds this will be your first upvote too, and first cycle
@HyperGamerStuds ya, good job!
@VMTU :D thx!!
@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
@HyperGamerStuds if you want
@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 :))
@VMTU Also what's a cycle in Repl.it? I'm a very new user lol, so idk
@HyperGamerStuds ok, i havent used scrath in a while lol
@HyperGamerStuds idk tbh, kinda like a follower system. whenever you get upvoted you gain one, and when you answer a question you get five
@VMTU ooh, noice
@VMTU is VMTU ur scratch? (I an 900th most followed with 1660 followers :D)
@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
@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
:) thx but I don't think I need help, I can join ur team anyway tho!! @Kirit0
@HyperGamerStuds oki. Thanks!
@Kirit0 :D
@VMTU WHOA I have 5 cycles now 😋
@HyperGamerStuds i just started posting two days ago and i have 99 cycles :)
@HyperGamerStuds love2d is a 2d game engine for lua
its easier
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.
cool I am on scratch too I am Adder12
noice, follow me perhaps? XD I make some really cool games :) @Chizitelum
This can return a lot of errors if someone does not put a number as their input
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
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
:) @hello1964
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.
bruh u copied this from someone
i think
@FahadKhan6 can you explain why?
This was from my teacher for a project :) @FahadKhan6
I can give you some advice so that you don't have to be changing the minus date- 2020 - every year that passes
@Chizitelum reply and upvote me to improve this code
well, I already know how to do that on scratch.mit.edu :D @Chizitelum
@Chizitelum Please don't beg for upvotes
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!
:) @pythoncoder347