Learning Python.. (I just dont get it)

+1 Michael Marshall · January 1, 2015
Hi all,

Very new to Programming. thought i would give Python a go. really wanted to learn how to program my own apps/small games but i think im living in dream land.

i started to go through the tutorials on this site, which has been the best so far, but i just dont understand it.
to me it just feels like im using another text editor like word.

an example of my confusion is:

Varibles.  Tuna = anything                   a=b             Bread = Butter

Why not just type "Anything" or "B" or "Butter"???

and how does all this make a program once learned?  i no im jumping the gun abit as ive only just started the tutorials but im starting to forget all this stuff is teaching me already but i dont see how its important.


PLEASE dont get me wrong, i no its very important and i admire you guys that have taken it in. but should i just give up now?

Post a Reply

Replies

- page 1
Oldest  Newest  Rating
0 Paul D · January 1, 2015
don't give up it is hard work to learn.  I don't know much but I am learning several languages and have been for years.  Work hard and you can learn.

variable Tuna = 10;

1 + tuna
6+ tuna
3+tuna
2+tuna
500+tuna

What if you reference tuna a thousand times in your code?  And now tuna = 20 and not 10.  Think about it, what is easier and smarter.    changing 10 to 20 a thousand times or changing the value of tuna once.  There is other reasons but that is just one example.  :)
0 Jordan Taylor · January 1, 2015
Hi Michael,

Don't give up. It's a process.

I think Bucky is a naturally gifted teacher and I'd say after taking other tutorials for many years his is the best I've come across so far. Some of the modules I get right away, and some I don't and I revisit them over and over until I get it. Sometimes I just write down the concepts that Bucky presents and I Google around until I come to an explanation that I can understand.

If I get stuck sometimes I just take another computer science tutorial (or any tutorial) just to give my brain a break. I don't think delving into other CS classes is so bad either. Even if you don't get the material the vocabulary will I'm sure come in handy eventually.

Variables are just that - they vary. Like in gaming it's like having a beginning life of 50. You get hit by an axe and now it's 40. X =50. Then X -= 10 and now it's 40. The X variable may be used all over the place, so it's not convenient to change the number all over the program. X might be used to figure out if your dead, to add to it if you get some life bonus, etc.

Good luck.
0 Michael Marshall · January 2, 2015
I have a habit of starting something and never finishing it. I REALLY want python to be something i can stick to and enjoy.

I totally agree, Buckys tutorials are by far the best ive followed. Ive started ready a few books and they went straight over the top of my head but with these tutorials ive managed to take the information in (even if i do quickly forget it)
Just need to stick with the videos and hope i start to understand how programs are formed with them.


Quick question.... What videos should i start watching for python.
Python or python 3? I think i started with python3 then when back to the original python section. (Another reason i may not be getting it haha)
0 Ryan Xu · January 2, 2015
Don't give up. Programming languages are hard to learn. Bucky is a very good teacher. Later, variables will simplify the amount of code you need to write. I had some trouble when learning Python, but Bucky helped me get through it. If you believe in yourself, you can do it.
0 Ryan Xu · January 2, 2015
If you installed python 3. something, use python 3, otherwise, use python
0 Michael Marshall · January 2, 2015
Yeah, i installed Python 3 something. Didnt no if i had to learn the first python section first or not, then the second section.

il go back to the Python3 section right now then haha. cheers for your replies everyone. im going to give another bash at these videos right now!
0 Chris Nelson · January 2, 2015
Hey Michael,
I am in the same boat. I tried to learn python when I was a teenager.. I got about as far as print 'hello world!' But I have been revisiting it because I made a commitment to not just sit on the computer and accomplish nothing, but actually learn something of use.

I find Bucky's tutorials really good. Also, codeacademy.com has helped, but some of those lessons are taught with syntax prior to python 3, and it has changed a little bit.

Another gentlemen on YouTube, Richard White.. He is a computer science teacher and he only has about 4 or 5 python videos. However they were immensely helpful for me early on.

The best way is to just watch the videos and try to code at the same time. You really need to be writing the code to understand it. Also for me personally, when I am trying to code something and I can't get it to work the way I want, I sit and talk it out loud in the most logical way possible.

 i.e, I say.. Hey .. 'If my score is less than 10, I want the computer to give me 1 point for every correct answer. I also want it to display my new score if I answer correct.. When my score is more than 10, then I  want the game to be over. Which in python would look something like..


my_score = 0
while my_score < 10:
  if user_answer == correct_answer:
       my_score += 1
       print ('Your new score is {}' .format(my_score))
  else:
       print ('Sorry that is not the correct answer!')

 


I have only been learning for just over a week, and it will all come together if you stick with it! 

Good luck and happy New Year!
0 Michael Marshall · January 3, 2015
A week.... Dang, you learn fast haha.
I started again yesterday from scratch (With dedication this time). Watch the videos + tried it out for about an hour... Only got up to "installing pycharm" then i stopped. Il give it a good old bash tonight though as i have no work tomorrow :)
But this time i understood everything as i was typeing the code into a program on my android and running it. Think its a little emulator or something but still it allows me to try the code while watching bucky on my computer. Nothing difficult at the moment just trying to remember the codes lol.
0 Chris Nelson · January 3, 2015
Glad to hear that.

I wouldn't worry if you can't memorize everything.. I think most programmers, have to go back and look up syntax from time to time. I think with anything in life, if you can gain an UNDERSTANDING of how it actually works, the vocabulary becomes much less important.
0 Michael Marshall · January 8, 2015
Sooo, ive got up to about the "Web Crawler" videos.
As usual i understand most of it but cant remember half of it haha.

Im thinking maybe i should download Python2?
Seems to me im going to be missing out on basic things thats in the Python2 section like 'Input' and stuff like that.

Also is it ok to ask a few question about the Python videos insted of making a new thread?

A few things i dont understand, like when you call a MODULE is it (Example: buckys favourite 'beautifulsoup4' Excuse my terminology, im not very good at remembering yet lol)

How do you no what codes come with it?

And when bucky does things like:

"Tuna.Something" How does he no 'Something' exists? Im guessing Tuna is a Varible and something is an operation of some sort but im not sure where the operation is comeing from.

I think he started useing these in the videos where you get text from internet or images/links and stuff.
  • 1
  • 2

Python

107,281 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator