You've already received a lot of answers and guidance, but here is on more
point...
On 09/25/2015 12:03 PM, Cody Cox wrote:
[snip]
this I am not sure about, I set Kilo=get_input(kilo), ...
Watch your capitalization! Kilo is _NOT_ the same as kilo. Case is significant in Python (as
wel
On 9/25/2015 2:50 PM, Cody Cox wrote:
Awesome guys! Thank you for helping me understand this material.
Parameters and Arguments are tricky. Looks like its mainly a game of
connect the dots with variables. lol.
If you stick with the convention that parameters are names in the header
of a functi
On Fri, 25 Sep 2015 12:03:43 -0700, Cody Cox wrote:
> #Design a modular program that asks the user to enter a distance in
> kilometers and then covert it to miles # Miles = Kilometers * 0.6214
#!/usr/bin/python
# main calls the input routine to get the km value, then
# calls the conversion rout
On Friday, September 25, 2015 at 1:26:02 PM UTC-7, Laura Creighton wrote:
> In a message of Fri, 25 Sep 2015 22:15:26 +0200, Laura Creighton writes:
>
> >No. You are going to return whatever is called 'experience' and
> >whatever is called 'monsters' and assign them to 'count' and 'monsters'.
>
In a message of Fri, 25 Sep 2015 22:15:26 +0200, Laura Creighton writes:
>No. You are going to return whatever is called 'experience' and
>whatever is called 'monsters' and assign them to 'count' and 'monsters'.
ARRGH! I meant
assign them to 'count' and 'animals'.
(I read that 3 times and _stil
In a message of Fri, 25 Sep 2015 11:50:10 -0700, Cody Cox writes:
>Awesome guys! Thank you for helping me understand this material. Parameters
>and Arguments are tricky. Looks like its mainly a game of connect the dots
>with variables. lol.
>
>When you return a variable, it needs somewhere to go,
On Fri, Sep 25, 2015 at 1:03 PM, Cody Cox wrote:
> def main():
> #set the variable to 0.0, makes it a float and creates a place in memory
> for the variable.
> kilo = 0.0
This is addressing a symptom, not the actual problem. Initializing
kilo here prevents Python from complaining when yo
#Cody Cox
#9/16/2015
#Programming Exercise 1 - Kilometer Converter
#Design a modular program that asks the user to enter a distance in kilometers
and then covert it to miles
# Miles = Kilometers * 0.6214
def main():
#set the variable to 0.0, makes it a float and creates a place in memory
fo
Oh, i also noticed that declaring the variable I was using and setting it =0.0
helped me out, seems the program had "garbage" in it... (that's what my
professor said.)
--
https://mail.python.org/mailman/listinfo/python-list
Awesome guys! Thank you for helping me understand this material. Parameters and
Arguments are tricky. Looks like its mainly a game of connect the dots with
variables. lol.
When you return a variable, it needs somewhere to go, and that's why it goes to
the next call into the argument area if I n
On Thu, 24 Sep 2015 11:45:06 -0700, codywcox wrote:
> I seem to be having a problem understanding how arguments and parameters
> work, Most likely why my code will not run.
> Can anyone elaborate on what I am doing wrong?
>
> '''
> Cody Cox 9/16/2015 Programming Exercise 1 - Kilometer Converter D
On 09/24/2015 11:45 AM, codyw...@gmail.com wrote:
I seem to be having a problem understanding how arguments and parameters work,
Most likely why my code will not run.
Can anyone elaborate on what I am doing wrong?
'''
Cody Cox
9/16/2015
Programming Exercise 1 - Kilometer Converter
Design a modu
In <7ad8941d-04aa-42c5-82e9-10cdf02ab...@googlegroups.com> codyw...@gmail.com
writes:
> I seem to be having a problem understanding how arguments and parameters
> work, Most likely why my code will not run. Can anyone elaborate on what
> I am doing wrong?
> def get_input(kilo):
>kilo = floa
On 2015-09-24 19:45, codyw...@gmail.com wrote:
I seem to be having a problem understanding how arguments and parameters work,
Most likely why my code will not run.
Can anyone elaborate on what I am doing wrong?
'''
Cody Cox
9/16/2015
Programming Exercise 1 - Kilometer Converter
Design a modular
On Thu, Sep 24, 2015 at 2:45 PM, wrote:
> I seem to be having a problem understanding how arguments and parameters
> work, Most likely why my code will not run.
> Can anyone elaborate on what I am doing wrong?
>
> '''
> Cody Cox
> 9/16/2015
> Programming Exercise 1 - Kilometer Converter
> Design
I seem to be having a problem understanding how arguments and parameters work,
Most likely why my code will not run.
Can anyone elaborate on what I am doing wrong?
'''
Cody Cox
9/16/2015
Programming Exercise 1 - Kilometer Converter
Design a modular program that asks the user to enter a distance
16 matches
Mail list logo