If you have any questions, comments or issues with this project please post them here!
I was wondering if there was a js version of this you know of.
There is no JS course made by Replit as of now.
What the elif did I build today? A hack proof login system! Try breaking in !!
Day 6 of #Replit100DaysOfCode #100DaysOfCode.
You can see the usernames and passwords in the source code so it’s not that secure. If you really want to keep them hidden, use secrets. Also some very questionable usernames and passwords you’ve used…
If you really want to keep them hidden, use secrets can you tell me how?
You will learn about this later in the course!
Oh… Whoops, my bad… Oh well.
Refer to this page for info on secrets.
I’m on Day6 of 100 Days of Code and had a question on -
username = input("Username > ")
For input variables- what’s the difference if I use “:” versus “>”?
In the previous days - for all input variables I used “:” but in this most recent lesson they switch it up to “>”.
How do I know when to use which one?
It doesn’t make a difference if it is
":" as it is part of the string they also both tell the user to enter there input.
There is no difference. The string you put in
input() is only a prompt to the user, it doesn’t change the value
username = input("Username: ")
username = input("Username > ")
are both exactly the same programmatically. The only difference is aesthetic.
So, this not is a little late but I did do Day 6. It was just it was a little late and didn’t want to make notes about it. Thank you!
Hi, I am creating Employee Login programme for my #100daysofCode. As a beginner written a basic code for login. Would be really helpful if someone would help me with introducing advanced aspects to the code.
When the employee logs in he puts in usual things such as username and password. But after that I him to have him a customized message based on journey (using mode of transport say bicycle, weather and the diet designed). For example, it should pick weather from New York and give him the relevant message
print("MY LOGIN SYSTEM") print("++++++++++++++++") username = input("Username > ") password = input("Password > ") department = input("task for the day > ") if username == "David" and password =="fgh6868" and department == "sales": print("Hello David. Hope you enjoyed your bike ride in beautiful streets of Sydney") print("Create sales deck for xyz client. This gonna be another best one from you") elif username == "Mark" and password == "gh25toa" and department == "data analytics": print("Hi Mark, it's going to be hot day in New York, don't forget to drink loads of water") print("please work on player accuracy data. We want our team to win!") elif username == "Paul" and password == "127asd" and department == "Foodzone": print("Hi Paul, yesterday you left the kitchen clean, Good Job!") print("Prepare food as per the food chart. You are an awesome chef!") else: print("Errr....I don't know you. Bye!")
Can you format the code with the option in ask (either in the wheel or the one looking </> ?
This will help us reading your code
@whileTRUEpass here is everything formatted correctly
I want to know if we can add real time weather from google based on person’s location. I am at nascent stage of learning so wanted to know if its possible in this python code
Thanks @QwertyQwert54 for the help !
Thanks for the help!