[Tutor] Help!

dn pytutor at danceswithmice.info
Mon Jan 4 14:07:37 EST 2021


On 1/5/21 4:38 AM, Weston Batey wrote:
> My school is currently using edhesive to do python work and I need help
> answering this question. I am in 8.6 arrays as parameters. A ___________ is
> a variable used to pass information to a method.


Welcome to the list.

We're not in the business of doing assignments for you. We will help you
to (learn how to) do-stuff with Python.


Recommend you review the material just-covered in the course. Surely the
topic is covered there?


To amplify your learning, consider accessing other tutorial sites and/or
books to be able to cross-reference between that/them and your course
materials - when you don't understand one, the other will help-hopefully.


What is a method?
What do we call/term a 'method' that is not part of a class?
If we have a simple method which doubles or triples its input (say), how
do we input/pass that input-information into the method?

Hint: be aware that two words appear to be used for the same thing - but
there is a difference when one considers what is happening when
*defining* a method, compared with when that method is *call*ed!

Also please note: there is no such thing as an "array" in Python. Python
offers "collections" - in various forms.


Web.Refs:
The Python Tutorial https://docs.python.org/3/tutorial/index.html
(specifically 4.6. Defining Functions)

Arguments and Parameters
https://python.tecladocode.com/4_treasure_hunters/4_arguments_and_parameters.html#what-is-an-argument

Python Function Arguments – Learn the 3 types of Arguments
https://techvidvan.com/tutorials/python-function-arguments/
-- 
Regards =dn


More information about the Tutor mailing list