The Box Of Random String
Would you like to react to this message? Create an account in a few clicks or log in to continue.
The Box Of Random String

A forum for nerds/geeks/dorks/Dorkface McSpazatrons/whatever you are to talk and be awesomely random.
 
HomeHome  PortalPortal  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Python....

Go down 
4 posters
AuthorMessage
Stuff
Nefnee's New BFF
Stuff


Number of posts : 1532
Age : 30
Registration date : 2008-05-07

Python.... Empty
PostSubject: Python....   Python.... Icon_minitime10/12/2008, 12:15 am

confuzzles me. Does anyone here program?
I started reading a How-To book. I read one chapter, got really confused, and closed it. Never touched the book again, only when it is in the way of getting something else.
Back to top Go down
AzurEmerald
Lari's New BFF XD



Number of posts : 794
Location : Waiting to take the burden off. It's always better to share things with another.
Registration date : 2008-10-03

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/12/2008, 11:21 am

What's so hard about it?

I'm going to start on it soon.
-*-*-*-*-
<em>AzurEmerald</em>- It can't be any harder than JS...
Back to top Go down
Yeti
Bearer of the Garnet Rod
Yeti


Number of posts : 1890
Age : 32
Location : In a black hole
Registration date : 2008-09-25

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/12/2008, 9:59 pm

I'm hoping to start programming eventually probably not until senior year cause that is when I can take classes at the high school.
Back to top Go down
master_eggman
Admin
master_eggman


Number of posts : 88
Location : Minetown. Damn gnome lords.
Registration date : 2008-05-07

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/15/2008, 4:13 pm

python is easy - It's really easy. Compared to other languages:

Python has no typing: you don't have to declare a variable as an integer/string/whatever.
Python has no strict variable identifiers: you can write whatever you want as a variable within a namespace and expect the interpreter to figure it out at runtime.
Python has dynamic arrays. FTW!

Here's a few examples to get you started. I'm assuming you already have the IDLE environment set up on your computer.

Example 1 - Hello World

1. Open IDLE and make a new window (from the file menu).
2. Save your new window as "test.py" or whatever.
3. Now, in your new python file, type
Code:
print "Hello world!"
4. Run your file with F5.
5. Hello world!
The print command will print some text onto the window: in this case, "Hello World". You can replace that message, or even add another print statement.

Example 2 - Me any My Friend

1. Open up a new file "friend.py" using similar methods as before.
2. To get input from the user, the syntax is:
Code:
raw_input(prompt)
where prompt is the text that displays asking you to input something.
3. So type these:
Code:
friend = raw_input("Enter the name of your first friend: ")
food = raw_input("Enter their favorite food: ")
print "The favorite food of your friend " + friend + " is " + food + "."
4. Test it out!

A line-by-line breakdown.
Line 1 gets input from the user and stores it in a variable called friend1. In this case, the input is the name of your first friend.
Line 2 gets input and stores it in friend2. In this case, the input is the name of your second friend.
Line 3 prints something to the screen. This something is a bunch of different strings attached to one another using concatenation operators - or as you know them, pluses. A string is a series of characters, displayed as text.

That's all for now.
Back to top Go down
AzurEmerald
Lari's New BFF XD



Number of posts : 794
Location : Waiting to take the burden off. It's always better to share things with another.
Registration date : 2008-10-03

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/15/2008, 5:38 pm

So, it sounds easy...

N, what was your problem with it?

-*-*-**-*-**---
<em>AzurEmerald</em>- A fleshy tambourine?
Back to top Go down
Stuff
Nefnee's New BFF
Stuff


Number of posts : 1532
Age : 30
Registration date : 2008-05-07

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/17/2008, 12:59 pm

I don't even know what it's supposed to do. Javascript is easy to me. It has a purpose in my life. What is the purpose of Python? If I knew it would be easier.
Back to top Go down
AzurEmerald
Lari's New BFF XD



Number of posts : 794
Location : Waiting to take the burden off. It's always better to share things with another.
Registration date : 2008-10-03

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/17/2008, 2:02 pm

Well, what's the purpose of JS to you?

-*-8_*
<em>AzurEmerald</em>- Because it may make it easier to figure out your problem if you tell us...
Back to top Go down
master_eggman
Admin
master_eggman


Number of posts : 88
Location : Minetown. Damn gnome lords.
Registration date : 2008-05-07

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/19/2008, 1:41 pm

Javascript can be embedded into webpages and used on the internet, Python can't. At least not that I know of. It's more for making executable programs to be run off of the filesystem, like applications and games and whatnot. For example, the library PyGame allows you to create games in Python.
Back to top Go down
Stuff
Nefnee's New BFF
Stuff


Number of posts : 1532
Age : 30
Registration date : 2008-05-07

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/19/2008, 3:52 pm

See that makes better sense.
My mom works with developers that use Python, and I don't really know what their jobs are. They work for an Aeronautical Engineering company but that's not what they do. They have "customers" and do something for flight coordinators, so it's all a mess to me.
I'll just stick to webpage design and adobe.
Back to top Go down
AzurEmerald
Lari's New BFF XD



Number of posts : 794
Location : Waiting to take the burden off. It's always better to share things with another.
Registration date : 2008-10-03

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/19/2008, 4:14 pm

But the fun part of Proggraming is learning new things and overcoming challenges. Don't be lazy and just try. Maybe another language would work for you..
-&;$:@(9"
<em>AzurEmerald</em>- Try PHP...
Back to top Go down
Stuff
Nefnee's New BFF
Stuff


Number of posts : 1532
Age : 30
Registration date : 2008-05-07

Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime10/19/2008, 4:36 pm

I somewhat know that. My work's website that I take care of is php. But I am teaching myself new things, and flash uses actionscript, which I need to learn... and with which I will create FLASH GAMES dun dun dun......
Back to top Go down
Sponsored content





Python.... Empty
PostSubject: Re: Python....   Python.... Icon_minitime

Back to top Go down
 
Python....
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Box Of Random String :: Geek Ethnicities :: Computer Nerds-
Jump to: