LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2019, 05:07 PM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Rep: Reputation: 36
Learning Python at my age!!?!??!?


Hey all,

So this isn't a techie question but I would really appreciate views and guidance.

I have been trying to learn Python for over 2yrs now (very much on and off) but I keep coming back to it and picking up the books and watching the videos and buying training material. For some reason I tend to just get dead bored of the basic stuff and start to crack on with projects which I know are far too advanced for my knowledge in the field. This has happened time and time again and I end up getting to a point my new venture whereas I realise that I have totally overwhelmed myself and my head is lost in what direction I need to go. This can be as simple as "should I use a dictionary here or a tuple there?" or "I am writing all this code but I am sure there must be some module for this, but how do I find it? Where do I look?".

Again, simple stuff for you lot but at 43yrs old and been in the IT sys admin game for over 25yrs I am tired and just wish things would sink in already! Alas, my grey matter is fighting me daily and Python is becoming my nemesis. My Vadar!

Can someone please tell me how they managed to focus and get it all under their belt and understood the ways of the force that is 'Python'.

Thx for your time.

D

PS. I promise I won't build a death star with my new learnt knowledge
 
Old 04-05-2019, 05:19 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I wish I were 43 again.

Why Python? Why not another language if Python disagrees with you?

When I code in Python, I scavenge for code in my own archives and I *frequently* search the web, concentrating on StackOverflow results. It's so quick to add code like that and there's no need to actually remember anything.
 
1 members found this post helpful.
Old 04-05-2019, 05:20 PM   #3
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Hey I recommend installing SoloLearn on your smartphone. It's more basic courses but it's easier to keep up. I never used the social platform section of it but it might help.


Another great resource is the Sam's Teach Yourself books.

 
Old 04-05-2019, 05:32 PM   #4
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
@hydrurga - I am sure you are no older than 21 and clubbing most weekends LOL! I decided or fixated on Python as it was the next progression in my line of work. It was either that or Ruby but the whole DevOps crap kinda favours Python and honestly I actually like it and I do enjoy learning it but as I said the damn thing just fights me.

I have so many interesting projects lined up but am so reluctant because I am scared I will lose faith again and again because I run into so many brick walls.

@Mill J - I've tried those SAM's books before for shell scripting and actually got on well with it. Silly I know but I ended up putting PostIt notes on the pages I knew I would refer back to again and again and I was right. I actually made a quick index for myself doing that. So maybe that is the way forwards for me? Maybe I should take shares out in PostIt and plaster my books and screens in them as mental reminders LOL!

Hmmmm! I can see my gravestone now....

Here lies 'fusion1275'
Fought for his passion in Python
But suffocated in PostIt notes!

 
Old 04-05-2019, 05:50 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
My honest answer. I look at the necessity of maintaining my job and this causes me to focus very well. I'd devote some part of every work day to learning it. End of story. I don't care if it bores me, one thought which crosses my mind is that it is not tbe world's hardest topic and that many others manage to use it, so I can do this the too.
 
Old 04-05-2019, 06:00 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Yeah. Been a long time since I glimpsed 43, for sure.

A couple of thoughts. Presuming this is not your first programming language, remember that you are only learning a new syntax. Equate what you know with what is similar in Python, and concentrate on what's different.

I'd probably go with O'Reilly Media books or classes because I have learned much about Unix, Linux, Perl, HTML, CSS, Javascript, BIND, etc. from their books in the past; but ultimately, it takes "heads down code crunching" to learn new languages.

Hang in there!
 
Old 04-05-2019, 07:39 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Never stop learning.
 
Old 04-05-2019, 07:54 PM   #8
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by fusion1275 View Post
Can someone please tell me how they managed to focus and get it all under their belt and understood the ways of the force that is 'Python'.
It might take some finagling on your part to figure out how to apply this to you, but I spent a lot of time on the basics-- particularly BASIC. When I first moved from stuff like this:

Code:
10 IF P > 5 THEN 30
20 PRINT "P is not more than 5" : GOTO 40
30 PRINT "P is more than 5"
40 END
to this, in QB:

Code:
if p > 5 then
    print "P is more than 5"
else
    print "P is not more than 5"
    end if
I was very excited. Shedding line numbers made it a lot easier.

When I was a kid, I thought it would be very cool to have arrays that you could look up by string instead of numeric index-- also arrays that hold more than one type. Python's got both, by the name of dictionaries and lists.

What I'm getting at is, each new feature opened a world of possibilities. I thought about features I wanted, what they could make easier, and what would be possible if I had them. I never even used functions with scope until I used Python, because the need was minimal and the syntax was distracting. This is a "noob's" critique but it held sway with me. All in all, functions are great for managing distraction.

Your impatience is understandable, but it holds you back. The best guide to choosing features like dictionaries and lists is experience. You need to build that up (practice) to feel competent. I'm no violinist, but if you pick up a violin and expect to feel competent in a short time (while jumping ahead to the more difficult work, at that) you're setting yourself up to feel exactly the way you do.

It's fine to jump ahead, but if you do, expect it to thwart you a bit. Learn to like the extra (unnecessary) challenge or as an alternative, take your time.

And this is unconventional, even frowned upon, but I think Python 2 is a lot easier in many ways. Most will equate support of Python with ease of use, but I've known professional developers and authors who think Python 2 is better. I think it's a lot more fun, and I've used both. A lot. Python 2 will be dropped in January, but only by the Python Foundation. Python 2 is less likely to help you professionally, but the PyPy interpreter will support it.

Coding in Python 2 is better than not coding in Python, in my opinion. Of course many libraries will not support Python 2 in the future either. Use the right tools for your needs.

If you're already bored with practice though, you're bored of the one absolute requirement for progress. So learn to make it fun and interesting for yourself, and you'll enjoy the thing it takes to improve. Practice, practice, practice. But look for ways to make practice enjoyable.

Quote:
PS. I promise I won't build a death star with my new learnt knowledge
If you do build a death star, please don't release the source code. That exhaust port would be all over ZDNET and patched, if they had made it GPL. A tie fighter would be cool though.

P.S. The SAM's books are useful, but nearly killed the joy of learning for me. I was a teen or pre-teen, and they are the dryest resource I ever used. The O'Reilly books are a raging funhouse next to those, and I'm not even a huge fan. Just making the comparison for those who are already bored.

Last edited by freemedia2018; 04-05-2019 at 08:13 PM.
 
Old 04-05-2019, 08:11 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
Quote:
Never stop learning.
I second that. The alternative is stagnation.

But if Python is boring you, maybe something else would be a better option.

I've just decided to relearn chess. I was quite an avid chess player when I was a young 'un, until I discovered contract bridge. But I haven't had a foursome for bridge for quite some time . . . .

And 43 was a long time ago for me . . . .
 
Old 04-05-2019, 08:17 PM   #10
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by frankbell View Post
But if Python is boring you, maybe something else would be a better option.
Oh yeah! I learned Javascript in between BASIC and Python. JS is great, worth learning, but using it made Python a LOT more fun!
 
Old 04-06-2019, 01:55 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by fusion1275 View Post
For some reason I tend to just get dead bored of the basic stuff and start to crack on with projects which I know are far too advanced for my knowledge in the field. This has happened time and time again and I end up getting to a point my new venture whereas I realise that I have totally overwhelmed myself and my head is lost in what direction I need to go.
sounds very familiar, this seemingly unsurmountable threshold. it probably is the reason why i'm fervently sticking to bash scripts (otoh there's nothing wrong with bash, it's pretty powerful in its own right).

anyhow, this is a problem i've always had - already in school - the hardest part about writing an essay was the beginning. sometimes took me an hour to get the first paragraph, then i wrote the complete essay in 30 min, and it wasn't too bad because i'd alrady had an hour to think about it. maybe that can apply to learning python, too?

in any case i don't see how this has anything to do with age.
when i started using linux 8 years ago i was just a little younger than you, and i surely have learned a LOT since then.

Last edited by ondoho; 04-06-2019 at 01:56 AM.
 
Old 04-06-2019, 04:38 AM   #12
peterb
Member
 
Registered: Aug 2003
Location: Athens, Greece
Distribution: Synology, Debian, Fedora
Posts: 136

Rep: Reputation: 16
Wink

Age is not a problem, just work a little slower and longer, read about the subject, and you can do anything.
I have setup my own web server at home and program using Php and Python and I am 65.
It was work but is now a hobby for the most part that can be used for a variety of interesting projects.
I also experiment with a microprocessor and electronics.

Regarding your post and as others have pointed out, what is it that you want to accomplish because each programming language has its use.

Last edited by peterb; 04-06-2019 at 04:41 AM.
 
Old 04-06-2019, 06:07 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
43 - that would be some time last century ... er last millennium.

Seems there is another language every other week - but I have a basic antipathy towards a language that insists on indentation rules. I see some fantastic post re python here on LQ, but then I think why did they break backward compatibility with python 3 ?.
If it hurts don't keep banging your head on the wall - go find something that suits better.
 
Old 04-06-2019, 06:18 AM   #14
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by syg00 View Post
I have a basic antipathy towards a language that insists on indentation rules.
They made me very sceptical at first. I've done a 56-line script (in Python) that lets you do Python with braces instead, though personally I prefer if / fi pairs like in bash. (Or for... next.) Note there are better versions than my own 56-line version.

Quote:
I see some fantastic post re python here on LQ, but then I think why did they break backward compatibility with python 3 ?.
PyPy. http://pypy.org/compat.html It's compatible with both versions of Python (they don't say very much about whatever happened to Python 1, but I've used older versions of Python 2 and it's safe to say that more recent Python 2 is better.)

However, let me very strongly agree that the right language for you or your task, is the language that's right for you or your task. I like to advocate for languages I like, but I also advocate for people using tools that they enjoy, or at least make their lives easier. That varies from person to person and task to task.
 
Old 04-06-2019, 09:23 AM   #15
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by fusion1275 View Post
... I keep coming back to it and picking up the books and watching the videos and buying training material. For some reason I tend to just get dead bored of the basic stuff and start to crack on with projects which I know are far too advanced for my knowledge in the field...
Sounds like books, videos, and training materials might be the problem. I don't go for that stuff myself. Just pick projects that can start small, and then build them up by versions. Lots of web searching. On those searches, I see code examples with new stuff that I wasn't even looking for: "I didn't know you could do it that way!" If I ever find myself building any kind of library, I stop and search for it; somebody has usually done it better than I ever could.

I did have some tough times at the beginning, for example, with Python GUI programming. I settled on tkinter, which might be lame but really does every GUI thing that I need at the moment. Then I wanted to incorporate C modules for speed. That was confusing because there are so many packages available for doing that. I settled on the built-in system for Python C extensions, which had a bit of a learning curve but now it's great.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Native "Age of Empires II : The Age of Kings PC" without WINE Xeratul Linux - Games 15 12-29-2013 12:11 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
Excited to start learning about Linux at my extended retired age ktznz LinuxQuestions.org Member Intro 4 12-24-2006 07:39 PM
Can't get Age of Empires II: Age of Kings started (I've could it before !!!) vegetassj2 Linux - Games 44 08-28-2005 04:59 PM
Java does "age" or "Age" matter when declaring an Int?? Laptop2250 Programming 3 10-13-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration