r/learnpython • u/[deleted] • Sep 24 '22
Python is fucking haaaaaaaard for someone without a coding background whatsoever<vent>
So I'm someone who grew up with zero coding background but I'm not computer illiterate... Growing up the most advanced thing I did on my computer was download pirated games and thought I was a genius. I went to business school.
I touched my first excel file at my first job and it caught on pretty quick... I got really good that by the time I was leaving that job I was the designated person excel trainer. My then boss advised me to learn bi so I startled learning powerbi and all other sort of BI tools... At my next job I learned SQL which was super easy. And also become a go-to person for sql queries in that company.
Then liars stared saying "you should learn python" "it's super easy". It's been years now and I can barely string together a piece of code to open an excel file without googling the syntax. It's so fucking difficult. To do the simplest of shit without googling.
I noticed the people who say python is easy to are people who have had prior experience/learning in other coding languages and python came in to make things easier. I get that. And for them that's fine. But for people starting with python without any prior coding whatsoever... It fucking SUCKS..
end of rant. Someone please buy me a glass of milk.
4
Sep 24 '22
You just probably never took the time to learn properly (i.e. get your fundamentals right). It requires time, patience and dedication, but it's not rocket science.
-5
Sep 24 '22
:( but I want it to be easy and intuitive like excel... No cookies for you... :(
4
Sep 24 '22
Apples and oranges. Excel is a finished tool designed to do a specific set of tasks. Python is a general purpose programming language. It's the type of thing used to make stuff like Excel.
This is like complaining that building a car is not as easy as driving one.
1
u/RoBMasteR11 Sep 24 '22
Python isn't excel. If you want to code in python then learn to code in python. There is no other way if you want to code
3
u/Ok-Cucumbers Sep 24 '22
When people say python is "easy", I think they mean it's easy to read.
Just open any properly written python script and anyone with basic English comprehension can probably have some basic idea what is going on.
1
u/CodeYan01 Sep 24 '22
Other than that, compared to C languages, python does memory handling under the hood. Lists and dictionaries are also easier to use than some scripting languages (looking at you, visual basic). Iteration through collections is also simpler to type.
So learning python as beginner leaves a lot of complicated stuff aside, so you get to focus on learning programming concepts first
-1
Sep 24 '22
Nope..... Not for me... 1000% never understand what's happening... Sql is like that... Sql its easy to know what's happening... Python isn't.
4
Sep 24 '22
Have you tried to take an actual python for beginners class? There are several good ones on Udemy that are like $10. It is important to learn the basics of lists, dicts, loops, conditionals, etc.
Syntax is like learning a bit of a foreign language... It is a muscle memory thing. You'll eventually be able to start googling less and less.
I advocate finding a passion project and working on it part time, and iterating and iterating. And then start adapting it. Look for patterns.
How long do you think it should take you to learn a challenging skill? I can type a 100wpm, but I can't play flight if the bumble bee on the piano...
1
Sep 24 '22
I've done several... One on coursera one in LinkedIn and another on udemy. I'm halfway through the udemy one
1
Sep 24 '22
The JetBrains academy one (Python core) is good. Has enough fundamentals and conceptual explanation to be useful, without turning into a philosophical text, and walks you through getting the building blocks into your head.
There’s a free 7-day trial, which is more than enough to work through the initial projects (I recommend Zookeeper, then Hangman if you’re confident, or an intermediate one second if you’re not).
There’s also a whole free plan but I don’t know the coverage.
2
u/BetterBytes Sep 24 '22
I'm a political science graduate and the first time I read something called bash, I thought it meant you hit the keys harder.
I'm the type of coder who misspells "world" in hello wrold. I constantly forget html codes. All I can do with python is to use it as a redundant calculator that can only add or subtract numbers. I follow programming subs and almost never know wtf anyone is talking about.
I wanted to get into cybersecurity having my PoliSci background I know the theory, don't have the technical skills. I don't know if I ever will. I have absolutely no talent in this sector except that I like problem-solving. Everything needs to be dumbed down like I am 5 for me to understand it.
2
Sep 24 '22
This feels like me... Before I got to understand that in python a "table" is called a "dataframe" holy fucking shit I had suffered...
I really need someone to ELI5
38
u/Agling Sep 24 '22
Correction: All coding is fucking hard for someone without a coding background. There's nothing that special about python, either making it easy or difficult. Some languages are harder to read or have more structure, but I'm not sure they are really that much harder for a non-coder.
Computer programming is a shockingly difficult skill to master the first time, regardless of what language you learn. We've all been there. However, like riding a bike, it becomes natural once you power through it, and it's not so bad after that. Your next language will be far, far easier for you, no matter what it is. In the meantime, expect some skinned knees.
Also, everyone googles stuff. Unless you are programming the same type of thing literally all day every day, you will be googling stuff. Don't feel bad about that.
7
u/SpaceBucketFu Sep 24 '22
Upvote for this one mostly. Programming is thinking of things as algorithms. And although that’s a big scary word, algorithms are literally only instructions to solve a problem. Addition is an algorithm. (A number) put together with (a number) is an algorithm. You have to train yourself to look at a problem la and solve them at the most basic level and build on the complexity from there. Python is arguably the best place to learn to do that because it’s so readable. It’s a lot easier to to look at the problem from a higher level than a lower one, and why would you ever want to look at the problem in a back breaking way? To be honest with you, you can’t imagine the problems that were already solved by people who wrote assembly for a living. And why would you want to write assembly to solve a problem that’s already been solved? It’s a much better use of your time to use a high level language like python to solve modern problems than to try to reinvent the wheel. If you were starting in C (or it’s derives) or something similar trust me you’d have a much worse time.
1
Sep 24 '22
The OP has a background in Excel and SQL. They’re comfy with algorithms.
The difference is that they’re coming from functional programming to imperative programming.
Not a lot of beginner Python resources are set up to deconstruct the functional thinking that comes with spending too long in Excel and steering them to an imperative way of thinking.
1
u/No_Patient9737 Mar 08 '23
Ok Then Teach me Freely python i know fucking basics of fucking python i watched all things but i didnt make my own project fucking python program
1
u/SpaceBucketFu Mar 12 '23
lol then stop being lazy and start making your own projects? I dont know what to tell you here.
3
Sep 24 '22
I do think some have a mind for it though, or at least a natural aptitude for problem solving and logical thinking. I don't want to brag, and I've certainly also been up nights in frustration, but for the most part I didn't struggle too much learning to program in C# as my first language.
1
2
Sep 24 '22
Right… I remember needing to debug and print(“here”) after every line of code. Now every once in awhile I can feel proud of myself for spitting out a whole function that wrangles a dataframe in a pretty complex way and it’ll run on the first try.
4
u/Tibernut Sep 24 '22 edited Nov 30 '22
Coding isnt easy. Python is the easiest tool to get started with it.
Don't feel bad about needing to Google syntax. I had to Google syntax for X many many times before it was just something I knew how to do.
The point is you can solve problems and automate stuff with python, if you have to look stuff up in the process it doesn't matter as long as you know what you are looking for.
Don't get discouraged!
QC2E3IeBpO
3
u/athalwolf506 Sep 24 '22
That is funny, when I received my first programming class for introduction to algorithms the teacher used Java, one experienced programmer I knew told me that it was like trying to teach someone who didn't know to use a bike how to drive a Ferrari.
Later they decided to change the language to Python because it was easier to understand for beginners.
2
u/BluespaceWhiteclouds Sep 24 '22
Someone correct me if my thinking is wrong. If you are able to know exactly what to google for python, wouldn’t make python easy? For example, the other day I had a pset to take a random script from a list, I tried some code, and got a shuffled list instead. So I though, “hey, I need to choose from the list.” Proceed to check the python read if I could figure it out just by reading the section on random. No help. So I google “how to randomly chose from a list” and bingo got the answer. Easy peasy.
2
Sep 24 '22
How advanced was your VBA work in Excel? Power BI workflows?
Many coding languages are far removed from the GUI and event driven world that exists within rich applications like Excel even if those are the languages the applications are written in. It can be hard to shift paradigm at first.
Programming, generally, is intellectually challenging, regardless of the coding language. Some languages lend themselves better to certain kinds of problems than others, and some make you do more housekeeping work (for reasons of efficiency and/or more control over the system resources being exploited).
Fundamentally, understanding a problem and what outcomes are required, identifying a solution (algorithm) including appropriate levels of abstraction and considering data models, workflows, user experience and interface, testing, security, availability, accessibility, maintainability, performance, etc, is challenging.
Programming is also a practical skill. I've helped many kids learn to programme, starting with Scratch and Python. I've also helped many adults learn at local colleges. Practice! Practice! Practice! Preferably focusing on projects that resonate where one is more passionate and focused on the problem rather than simply the mechanics of any particular coding language.
Don't expect it to be easy and just an extension of your experience with Excel and Power BI. Also, trying to do things in an Excel like way is likely to be very frustrating.
It is also worth noting that, since April 2019, Python integration has been generally available in Power BI. There are things that can be done far more efficiently in Python than in Excel or with other Power BI tools.
1
u/Jeremyrecker Feb 05 '25 edited Feb 05 '25
I know this is old but...I would argue that python is "easy" for those without a background because it is much more readable whereas other languages can be fairly cryptic but also it does a lot implicitly (hand holding..kind of) which keeps you from having to reprogram your brain as much, which is bad and teaches bad habits in assuming things will work correctly without it being exactly what you've instructed it to do. I would say that it's "hard" or, realistically, frustrating for people with a coding background because it's so implicit instead of doing only what you explicitly tell it to do. I'm not super developed as a...developer..but I started on C which basically does nothing more than what you explicitly tell it to do. So if there's a logic bug then it's because YOUR logic was wrong, but in python your logic can be completely correct but because python just makes assumptions about what you want it can then assume incorrectly thus making the overall logic flawed.
1
u/chromeFox_x86 Sep 24 '22
Any new programming language hard however it's even worse without knoqing computer science concepts. While every programming language has a different syntax and style, almost all computer science concepts are universal throughout all languages. I would recommend taking a class on computer science.
There is an organization called free code camp they have many programming tutorials online on various languages. They have a video called python for everybody which seems to have a fairly in-depth course on the programming language and some computer science concepts. If possible I would recommend the in person class more but thats my opinion with any other subject. I play free code camp also goes to universities or other event venues hosting various speakers on various computer science topics. If there happens to be an event near you I would highly recommend it.
The key is to execute the program often. This allows you to pick out errors from a small portion of the code rather than many errors from scattered throughout the program. Also when you get a program working it doesn't hurt to edit in a copy of the file in case you screw something up and want to go back to where it worked.
One final important and cliche point is practice makes perfect. The computer needs your program to be perfect in order to be even able to understand it. It only takes one character off to trash the whole program.
1
u/Anxiety_Independent Sep 24 '22
"it's been years now" you say, but years of what? Studying Python 8 hours a day, 7 days a week? Or sitting down for 30mins - 1 hour after work every other day and then, watching and blindly following a course?
If it's the first one, then I'm really sorry, but if it's the second one, then you have nothing to worry about!
It took me like nearly two years to understand how simple terminal tic-tac-toe works. I could watch a tutorial and copy what they did successfully, but I didn't understand parts. This was me, doing 30-1h every day or every second day.
I then realized that programming requires repetitiveness in terms of learning. You want regular, long chunks of time, dedicated just to coding coding coding. Preferably, not from tutorials, but rather written sources such as articles and more importantly documentation.
1
u/The_GSingh Sep 24 '22
Lol. I can't even pirate a game yet here I am a python dev. In all seriousness python was easy for me to pick up (at least the basics including opening csv files and editing them) althoughit could be gard at times (in thise times get help from googke its there for a reason). I first started my coding journey with a language that isn't even a coding one- html. I started using html, then css and then js to make a website. After I was done I noticed that js was really cool, so then I learnt a little node.js but decided js was better for websites alone (at that time). So then I stumbled on python, which was similar to js. I used my very basic knowledge of js and got to work on python. It was easy and fun for me. I'd make project after project. Made a few bots, a few websites and other fun stuff, although I lost the files when my computer decided to break :(. My point is I hadn't had a technical background, wasn't good at technology, and I still learnt python. I simply decided I wanted my own website to flex on my friends and here I am now. You know the main thing that made this all easy? DESIRE/INTEREST. If you don't like what you're doing then how are you gonna exel in it? That's why I made project after project, I used python in the way I wanted to not how some corporation or guy on yt wanted me to. And by doing this you'll get skills so that eventually you can do what a corporation or guy on yt wants you to do. All I'm saying is have a reason and interst in py. Make projects you wanna use like a bot. A bottle I made takes data from reddit am I the @$$hole page, transforms text to audio (mp3) and emails it to me for 10 stories. It was fun and requires many elements that you'll learn about like txt to speech, sending emails with py, scraping from reddit. And after your done? Go scrape something else to reinforce the knowledge bur above all have fun or its gonna seem like python is binary (imagine coding in 1 and 0s).
1
u/Chicken_Master27 Sep 24 '22
OP I feel you. I’m in the same spot you are.
I’m struggling to learn Python but I keep going, the community is very cool and supportive.
I don’t have much advice to give you but I’m sure that if you are good in EXCEL, power Bi and SQL there’s absolutely no reason you don’t overcome your struggle with python.
Coding itself is hard, however you already are a problem solver.
1
u/markgva Sep 24 '22
Maybe you should use an editor such as Pycharm which will highlight syntax errors. That will help, but ultimately, it's being able to design a good algorithm to solve a problem that is the real challenge.
1
Sep 24 '22
I disagree. Started with python and now when I come back i am deleting lots of ; at the end of my lines. It's very easy to learn an interpreted language vs just OOP right off the bat. I find myself more at comfort with regular oop like c and js, but python is still the easiest to actually get things done with
1
u/Dinkinn_Flickaa Sep 24 '22
If it makes you feel any better, Python frustrates me sometimes and I’m a seasoned developer.
1
Sep 24 '22
It's easy to quickly learn basic things in Python. Once you get to more advanced tasks though is where not learning the fundamentals first can bite you.
1
u/Guyserbun007 Sep 24 '22
It's incremental steps, a marathon not a sprint. Work on projects that interest you.
1
u/Nachtlicht_ Sep 24 '22
It's easy for someone who is interested in computers. Do you know Linux? Do you use terminal to get things done? Can you write sh script? So you code in python daily? Don't expect to know the syntax by heart of you don't. Also, who cares, just search for what you need, that's fine.
0
u/HomeGrownCoder Sep 24 '22
If you are in the US I can lend a hand on discord if you need a hand with the basics.
0
2
Sep 24 '22
[removed] — view removed comment
1
Sep 24 '22
I did once... But not from intuition... Found it online... Created a function to write a number in words. Worked about 98% of the time...
1
Sep 24 '22
No-one knows programming by intuition. You can’t intuition your way into speaking Hungarian, or Mandarin. Python is no different (though it’s simpler than Hungarian and Mandarin).
5
u/atredd Sep 24 '22
From a coding perspective python is extremely simple compared to a lot of other languages. But it ist coding. So it‘s completely different from something like Excel or PowerBI.
But if you‘re trying python for years I don’t really unterstand where the problem is to do some basic stuff? What sort of problems you want to solve with python and how often do you use it?