Martin Rimes
@MartinRimes
I think that it would be cool to make a program that lets you control the turtle so either have it follow the mouse also is there a way to let the mou
Python
i am making a calculator and I need to find the square root of a number but am having trouble using the command for finding square root "sqrt()" I am
Python
whenever I try to use the same thing module multiple times the program stops working. I tried to do some research and found the reload command but cou
Python
InvisibleOne The issue is because you are importing things more than once, you only need to do it once at the top of your code, and then you can use the functions from that module wherever you want.2 years ago
how do I make my repls packager files work faster pls help me it is so annoying to have to wait for the filles to update every time I change something
Python
JBloves27 Hello there!
Let me just tell you that you can't switch the speed. You can only wait for the packaging to wait. There is no other exception. Sry!
I hope this helps!2 years ago
does anyone know what packager files are they suddenly appeared in my repl when I tried a test run, are they in my repl because of how big my repl has
Python
chessmajor Hey man, I'm having the same problem. I'm not sure if I should but I just delete them. But you're probably not going to see this considering you submitted this complaint a year ago. :)1 year ago
MartinRimes I think that even though python has back packager files I will keep them since I do not understand their code as I am a bit of a noob at coding and all of my programs just use the same like 5 lines pf code over and over and over again2 years ago
how do I turn a list into variable for example the list 1, 2, 3, 4, 5 is changed into the variables num1 num2 num3 num4 num5. I do know how to make
Python
MartinRimes thanks guys but how would I have a third party enter the numbers instead of them being predetermined and I would like for people to be able to enter the numbers as a list... and again thanks a lot :D2 years ago
Coder100 There are two ways to do this. The first would be to have a tuple:
values = [1, 2, 3, 4, 5]
num1, num2, num3, num4, num5 = values
The second way is:
values = [1, 2, 3, 4, 5]
num1 = values[0]
num2 = values[1]
num3 = values[2]
num4 = values[3]
num5 = values[4]
`2 years ago
SUHASTADIPARTH1 You need to do this
listofnums = [0, 1, 2, 3, 4, 5]
num1, num2, num3, num4, num5, num6 = listofnums
print(num1) # this will be 1
print(num2) # 2
you can assign variables to the list
2 years ago