Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Variable assignment wierdness with Memory
Post: Variable assignment wierdness with Memory

Hi, I am having an issue with variable assignment or maybe memory with my computer. I am assigning V_new the value of V, then I change V_new without changing V, but when I print V before and after thi...
eoins General Coding Help 1 2,049 Mar-07-2020, 07:07 PM
    Thread: Function returns "NoneType"
Post: RE: Function returns "NoneType"

def collectDataMarcath(file,arr,index): arr[index, 0] = np.fromfile(file, dtype='uint32', count=1) #Event Size eventSize = arr[index, 0] arr[index, 1] = np.fromfile(file, dtype='uint...
eoins General Coding Help 3 5,224 May-22-2019, 09:34 PM
    Thread: Function returns "NoneType"
Post: Function returns "NoneType"

def collectData(file,arr,index): arr[index, 0] = np.fromfile(file, dtype='uint32', count=1) eSize = arr[index, 0] arr[index, 1] = np.fromfile(file, dtype='uint32', count=1) chan...
eoins General Coding Help 3 5,224 May-22-2019, 08:28 PM
    Thread: For loop (adding strings to a list trouble)
Post: For loop (adding strings to a list trouble)

When I run the following code, the user is asked 3 times "Name a hobby: ", so I enter fishing, hiking, coding then hit enter. When I then print the list hobbies, each item in the list has a u" in it. ...
eoins General Coding Help 2 3,045 Jul-03-2018, 12:29 AM
    Thread: Accessing a dictionary - KeyError ??
Post: Accessing a dictionary - KeyError ??

I am trying to practice lists and dictionaries. I know this is not the ideal way to code this specific task but I wanted to use lists and dictionaries to make sure I knew how to use them and access th...
eoins General Coding Help 1 3,489 Jun-06-2018, 12:58 AM
    Thread: IF statement trouble
Post: RE: IF statement trouble

If I make the values of the inputs such that total_cost_car_gas is greater than budget_car_gas (For example if the inputs are 11, 40, 2.99, 800, 200, 30, 20, 5), I still get the result that I would if...
eoins General Coding Help 6 3,669 Jun-04-2018, 09:04 AM
    Thread: IF statement trouble
Post: IF statement trouble

I can only get one outcome from this if statement. Even if the value of total_cost_car_gas is larger than budget_car_and_gas, the code will still run the difference_under operation and print the thing...
eoins General Coding Help 6 3,669 Jun-04-2018, 08:52 AM
    Thread: IF statement trouble
Post: RE: If statement with raw_input

Thanks so much!
eoins General Coding Help 6 3,669 Jun-04-2018, 08:40 AM
    Thread: IF statement trouble
Post: If statement with raw_input

Hi, I am fairly new to python and coding in general. I was trying to practice a bit by making a cook book sort of thing and I can't figure out what I am doing wrong. Every time I run the code and ente...
eoins General Coding Help 6 3,669 Jun-04-2018, 08:25 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020