pattmax (3)

Whoever logged into my account, please don't thanks :)
Running multiple pygame scripts
posted to Ask by ETHANSIAO

Do you mean making something like functions.py and then using a function contained in that file inside main.py? If so just do "import functions" (or whatever your file name is without the .py) and when calling a function from functions you'd do: "functions.function.py"

How do I run manage.py commands (Django) on my Repl?
posted to Ask by pattmax

@PaoloAmoroso Just tried it. I'm still getting "OperationalError at /upload no such table:"

Student accidentally deleted code - any way to get prior version of program?
posted to Ask by kmcleod

They should be backing up their code on Github in the future.

Functions in python
posted to Ask by mhs_mhs123

Change the print to a return and then you can do

print(convert(5))
c++ gui on repl.it?
posted to Ask by pattmax

@TheDrone7 Ok, thank you. I'll just work on functionality at school, and GUI at home. What do you think of code::blocks' WxSmith?

C++ games on repl.it?
posted to Ask by pattmax

@TheDrone7 Is this a planned feature?

How do I add to variables in python?
posted to Ask by mhs_mhs123

cost_per_pound = int(x)
total_cost = int(input("How many pounds do you need?")) * cost_per_pound

If you want cents consider using floats instead of integers. I'd recommend taking the Python 3 course on sololearn.

Edit: After looking at your code, you'd be best off making a food class with a name and cost attribute. You could remove some repeated code this way.

Do you like games?
posted to Ask

Start with the Godot engine, GDscript is a nice language that is very pythonic, or you could use good old cpp, either way it's hard to go wrong with Godot, it has a designated 2d and 3d engine. According to some metrics I saw on YouTube crime games are by far the most popular.

Repl.it Mobile App
posted to Ask by Kognise

I would use it if it was smooth. The website is terrible on mobile, I can contribute, what technology are you using?