Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: too much "self."
Post: RE: too much "self."
(Apr-14-2019, 01:55 AM)Skaperen Wrote: how about a mechanism where i type it in like .. and another script "processes it" to change .. to self.? how often do you type in "self."?
I type in "self." ... |
|
loomski |
General Coding Help |
7 |
3,368 |
Apr-14-2019, 02:14 AM |
|
|
Thread: Need help understanding simple Array code. Please.
Post: RE: Need help understanding simple Array code. Ple...
(Apr-13-2019, 05:38 PM)stluwa Wrote: import pandas
import numpy
dataframe = pandas.read_csv("C:\Users\stluwa\cars.csv")
array = dataframe.values
X = array[:,0:8]
Y = array[:,8]My problem is, I can n... |
|
loomski |
General Coding Help |
1 |
2,220 |
Apr-13-2019, 07:16 PM |
|
|
Thread: Money Global Variable
Post: RE: Money Global Variable
(Apr-11-2019, 10:07 PM)ichabod801 Wrote: (Apr-11-2019, 09:33 PM)loomski Wrote: I see you said he should assign money to old_witch(money) and that would work, but is this the best approach? Yes.
Bu... |
|
loomski |
Homework |
8 |
4,318 |
Apr-12-2019, 12:59 AM |
|
|
Thread: Money Global Variable
Post: RE: Money Global Variable
(Apr-11-2019, 09:06 PM)ichabod801 Wrote: Or even better, don't use a global. Pass money as a parameter, return it, and assign it. For example: def oldwitch(money): print ("You bought a potion") ret... |
|
loomski |
Homework |
8 |
4,318 |
Apr-11-2019, 09:33 PM |
|
|
Thread: Money Global Variable
Post: RE: Money Global Variable
Just declare money as a global inside your functions that way when the rest of the code runs it knows that when you reference money, you're referencing the global variable. |
|
loomski |
Homework |
8 |
4,318 |
Apr-11-2019, 08:35 PM |
|
|
Thread: Beginner Level - Name Error
Post: RE: Beginner Level - Name Error
(Apr-11-2019, 08:34 AM)moste Wrote: Since you are new in python i recommend you to see some tutorials on youtube. There's some good stuff out there! Keep up the good work!
YouTube is good if you can... |
|
loomski |
General Coding Help |
11 |
5,055 |
Apr-11-2019, 07:53 PM |
|
|
Thread: Need help getting the output
Post: RE: Need help getting the output
(Apr-11-2019, 05:10 PM)aankrose Wrote: @perfringo You are awesome , thanks buddy
But do you actually understand what is happening in the code he posted? Sure, you now have the solution, but would yo... |
|
loomski |
General Coding Help |
10 |
4,594 |
Apr-11-2019, 07:52 PM |
|
|
Thread: In need help to put this code in order
Post: RE: In need help to put this code in order
The last function should read
def E_erlang(Gos, A0):
a = 0
b = n
c = 0
Gos_c = Gos_erlang(c, n)
while abs(a - b) > 0.000001:
c = (a + b) / 2
if Gos_c < Gos:... |
|
loomski |
Homework |
4 |
3,134 |
Apr-11-2019, 05:50 AM |
|
|
Thread: Intializing return value to 0
Post: RE: Intializing return value to 0
This is a pretty choppy way to do this but I'm not sure why you set the value of num to 0 and then added 1 to it before even checking to see if it equals to 0 first. I rewrote what I (think?) you orig... |
|
loomski |
Homework |
2 |
2,642 |
Apr-11-2019, 05:43 AM |
|
|
Thread: adding lists to lists?
Post: RE: adding lists to lists?
(Apr-09-2019, 08:43 PM)ivinjjunior Wrote: hey everyone, i'm new in coding and i really need to create logic to help me in my job..
i am having trouble with creating a way to put lists into a existi... |
|
loomski |
General Coding Help |
5 |
3,077 |
Apr-09-2019, 10:01 PM |
|
|
Thread: how to decode this in python
Post: RE: how to decode this in python
(Apr-07-2019, 08:50 PM)anthoniegallego Wrote: Do you think you could post the code and explain it that way? That’s probably help me understand it better
I can explain the code you have so far, maybe... |
|
loomski |
Homework |
11 |
5,233 |
Apr-08-2019, 08:45 PM |
|
|
Thread: Time question
Post: RE: Time question
What exactly is "t" and "z"? I understand that they are parameters for your method "compute_opening_duration", but here's the problem:
1. As others have mentioned, the syntax.
2. t and z aren't utili... |
|
loomski |
Homework |
11 |
53,850 |
Apr-08-2019, 08:17 PM |
|
|
Thread: Incremental loop?
Post: RE: Incremental loop?
Hi, I know that my post is a few days late and you've probably figured it out by now, but I don't see your reply here so I'll just chime in.
(Mar-12-2019, 11:19 PM)Headphone256 Wrote: I guess the l... |
|
loomski |
Homework |
5 |
2,957 |
Mar-17-2019, 02:48 AM |