Victory Road Archive

You are viewing an archive of Victory Road.

Victory Road closed on January 8, 2018. Thank you for making us a part of your lives since 2006! Please read this thread for details if you missed it.

Technology → So, Python, right? Me neither...

Page 1 of 1

1. SyracuvatTenlii said on September 25, 2012, 11:22:48 AM (-07:00)

Regigigas
746 posts

Okay, seriously, I just had to throw this out there. I'm in my Computer Science I class for my CS major, and I had come in there with the prior "knowledge" that I had to know Javascript relatively well when coming in there, so with a little help of a friend of mine, CodeAcademy, I felt pretty confident. To my surprise, however, it turned out that the subject matter had recently changed, and rather than Java, the class is now centered around a language known as Python.

My true experience with legitamite programming as it is currently is scant, but at least I've heard of languages like C, C++, Java, BASIC, Revolution *shudders* oooooohhhhhh...Revolution...but, Python was something I've never even HEARD of coming into this class. Any input from the good board frequenters as to their opinion/knowledge about this somewhat lesser known language?

2. Ditto616 said on September 25, 2012, 11:37:43 AM (-07:00)

Moderator
982 posts

My first programming class was in Python. I came in with next to no prior knowledge in any programming at all and I got a 3.5 in the class, mainly because I have a very bad habit of procrastination. From what I can tell with other languages, Python has very basic commands. You'll be fine... Probably

3. Twiggy said on September 25, 2012, 12:07:33 PM (-07:00)

Kyurem
2,098 posts

I suppose I have something to thank. We started with web dev stuff, JavaScript and PHP. After that, I think it's C++ time. I wonder whether I'll ever touch Python.

4. PokeRemixStudio said on September 25, 2012, 01:48:14 PM (-07:00)

Moderator
2,066 posts

Python is comparable to Java or Javascript. Some notable differences in Python's syntax are the lack of brackets and semicolons, and using colons to indicate a block of code instead. The variable types have different names, like str instead of String. But Python has the same object-oriented capabilities as Java/Javascript.

Code:
class Student:
    def __init__ (self, name, age, gender):
         self.name   = name
         self.age    = age
         self.gender = gender
 
Sue = Student("Susan Miller", 20, "f")
print Sue.age
Output is 20

Likes 1 – Ditto616

5. JeffTheKiller said on September 25, 2012, 02:16:45 PM (-07:00)

Zoroark
283 posts

Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.

6. NismoZ said on September 25, 2012, 04:14:58 PM (-07:00)

Kyurem
2,014 posts

I have nothing to contribute to the thread but there is a relevant xkcd    
Embedded image

Likes 1 – GalliumGrant

7. Cat333Pokémon said on September 25, 2012, 07:05:01 PM (-07:00)

Administrator
10,307 posts

This semester will be the first where I will use at least a little Python. I currently know almost nothing about the language, but I have heard of it and seen it run.

8. KingOfKYA said on September 25, 2012, 07:11:48 PM (-07:00)

Volcarona
523 posts

KYA likes python.

You can read everyone code... because it forces everyone to use the same formating.

Python is some times called executable pseudo code. Ether way its good starting language because it makes you use readable code. For example you could do this.

C(like)

Quote:
for( $items in array){ runFunction($item); doThisToo(5)}
or
Quote:
for( $items in array){
runFunction($item);
doThisToo(5)
}
Python You must space it as followes (and no ;(){}[] $ etc...
Code:
for items in array
   runFunction(item)
   doThisToo(5)

Random tip for new programers always set some rules.
My basic rules:
never use plural forms of words.
abrivated names always 3 char
use camel case (forExampleThisIsCamelCase) some like - or _ though ether way pick one and stick to it.

Likes 2 – Ditto616, SyracuvatTenlii

9. JeffTheKiller said on September 25, 2012, 07:28:58 PM (-07:00)

Zoroark
283 posts

Quote:
Originally Posted by JeffTheKiller View Post
Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.
So I'll take that as a no on the Python for dummies

10. Quadcentruo said on September 28, 2012, 06:01:29 PM (-07:00)

Giratina
3,684 posts

Quote:
Originally Posted by JeffTheKiller View Post
Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.
Python, from what I can gather, is a type of programming code (like Java or C++). It's simply another way to make a program, but with different ways to make the code.

11. PokeRemixStudio said on September 28, 2012, 07:39:02 PM (-07:00)

Moderator
2,066 posts

Python's pretty popular among game developers too

Likes 1 – TurtwigX

12. Quadcentruo said on September 28, 2012, 08:06:14 PM (-07:00)

Giratina
3,684 posts

Quote:
Originally Posted by PokeRemixStudio View Post
Python's pretty popular among game developers too
If I remember correctly, Python is what Ditto has to use for his game development class.

13. Ditto616 said on September 29, 2012, 09:23:42 AM (-07:00)

Moderator
982 posts

Quote:
Originally Posted by Quadcentruo View Post
If I remember correctly, Python is what Ditto has to use for his game development class.

Indeed I did, though it was a really, really, really simple one. There are many different modules, like PyGame, the one that I had to use for the game design. It really broadens out what the language can do. There's even a graphing one, which is kind of useful.

Page 1 of 1

User List - Contact - Privacy Statement - Lycanroc.Net