On line 66, you forgot to end it with a second
). Tip: If you can't find the issue with the current line in syntax errors, look at the couple of lines before it.
Python is a great language, but choose whatever you want! Each language has it's own advantages and disadvantages. If you like Python, go for it. But if you want to try any other languages, that's perfectly fine too.
We would love to help! However the repl you provided doesnt have any code. If you comment a link to the repl you're using, we'd be glad to help you.
Remi is a library that acts like a GUI, and has similar syntax. However, it makes a website that have the GUI on it, instead of opening a window. This works great with repl.it! I should note, despite what the repository says, it doesn't work on firefox, however it's perfectly fine with chrome.
This is a great game! However it's had it's time under the sun. I hope everyone enjoyed this project, because I know I did! Anyways, I'll be unpinning this now, but that doesn't mean you can still find it! Thanks @ericqweinstein for this amazing game!
You forgot to add end quotes to each option. It should be
['Short pass', 'Long Pass', 'Run']. Good luck on your project!
Your IDE doesn't prevent you from learning important skills used in the work force, so by all means, continue with repl.it! If a work place requires a certain text editor or IDE then that's fine, but you'll still be able to use the skills you've gained from repl.it
You can upload files from your computer into a repl, and then have your students fork the repl, so each receives the same copy.
This is really cool! If repl.it were to increase the speed of the screen clearing, it would work perfectly. Try this in you're computer's console, and replace replt.clear with os.system("cls") if on windows, and os.system("clear") for linux.
Not at the moment, however don't worry! This feature is planned and being developed as we speak.
You can use the built-in
len function to get the length of a list.
By the way, you can use
os.system("clear") to clear the screen!
I also started working on a discord library for python for a while, but it became messy and I didn't want to refactor it. However it does work, and you can find "discordy" here
Ha, clever. However I don't think people would understand exactly what it was, simply from that name.
Let your hacktober PRs be test fail free and flake8 compliant.
Nice, although, you shouldn't use global statements in that context, it's completely unnecessary.
Because your responses are the same for some messages, I'd suggest having lists of the same types of message ("Hi", "hello", etc), then check if the message was in the list, and respond. I'm not great with ruby, but in python it would be
reply = "Hi" greetings = ["Hello", "Hi", "hey"] if reply in greetings: print("Hello. How are you today?")
This makes the code DRY (Don't repeat yourself), a very important concept in computer science.
As a side note: at least 1 member of your group MUST be on the discord server!
First of all, you used
} when you should have used
You then tried to add an integer to the string, which isn't possible. You'd have to use .format or convert it to str.
Lastly, you never added the operator in front of months, so the variable is just there, and python doesn't know why.
I don't have the code, but maybe this will help you make it. Q20 uses a binary search algorithm, which actually is much simpler then it sounds. This site has an example: http://openbookproject.net/py4fun/animal/animal.html