School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,406 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,621 people online right now. Registration is fast and FREE... Join Now!




python defined help

 

python defined help

richie231186

2 Jul, 2009 - 07:03 PM
Post #1

New D.I.C Head
*

Joined: 17 Jun, 2009
Posts: 2


My Contributions
Hi, I am new to python and currently studying web design and development and as a part of my course we have been given a module on python for us to learn the common concepts behind programing languages.

I am currently reading A Byte of Python v1.92 (for python 3.0)

seeking help on rapping my head around some of the terminology used that doesn't seem clear to me after reading a lot of this book.

I get most of the terminology but only to some degree and I feel I don't fully understand them as well as I should and may be holding me back from progression in this language.

such as:
functions
objects
arguments
operators
expressions
libraries

Many things give examples of some of these words that are mixed in with other stuff and it becomes hard to get a clear cut definition on them.

User is offlineProfile CardPM
+Quote Post


code_m

RE: Python Defined Help

5 Jul, 2009 - 07:17 AM
Post #2

D.I.C Head
**

Joined: 21 Apr, 2009
Posts: 118



Thanked: 8 times
My Contributions
I'll try me best (but if this is unsatifactory, pydoc is your friend):

---functions - any defined name that performs an action, think of it as the "Executable" of your program
python
def foo(): pass
function foo does nothing
---objects - really, any data in python, think of it as "hey it's a variable"
python
x = 1
x is an object of type int
---arguments - anything passed to a function to help define what it does
python
exec("print")
"print" is an argument of exec
---operators - simple math functions
python
x = 9 + 4
the addtion operator is adding 9 and 4
---expressions - a way to write code (this is no different than talking, you express your self using a tone.
python
foo = [x for x in range(5)]
Vs:
python
foo = [0, 1, 2, 3, 4]

---libraries - a collection of funtions dealing with a specific area or custom data type
python
import os
make the os library available for use
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 10:47PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month