Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
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'. >

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
#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

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
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

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
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