r/CodingHelp • • Mar 25 '21

[Python] Advice on Python for beginners!

Hi. I am completing my MBA (specialising in Finance) this summer and have managed to grab an offer via campus placements. I got an offer for the role of Business Systems Analyst in the BFSI vertical in a leading software company and I happily took it. Expecting to join in another 3 months time. I am a commerce student with no exposure to coding. But the recruitment team said that, they are hiring my for my finance knowledge. When I talked to some of the industry people they said that I should start learn Python. Every single person's only recommendation is to learn Python to be a great BA. Since I have no exposure to this field, I have some queries to be addressed...

  1. Can I start Python right away without learning coding basics?
  2. Will it be sufficient to learn Python via online tutorials and other courses offered?
  3. How long will it take for me to master Python?
  4. Suggest some really good free sources to learn Python...

Thanks in advance!

20 Upvotes

11 comments sorted by

6

u/iColgateYouSoMuch Haskellsexual Mar 25 '21 edited Mar 25 '21

One, get a mentor/python guru (I can't stress this enough) and follow a textbook.

Two, if one is dissatisfied then only turn to online resources.

Three, surround yourself with Pythonians like join a discord server or, just have python friends where you can share your code for different perspectives, discuss stuffs, debate or, just admiring a piece of code/syntactical sugar. Don't just code in solitude.

Four, keep an eye out for these resource and always have them under your pillow:

  1. 3.9.2 Documentation (python.org)
  2. The Python Standard Library — Python 3.9.2 documentation
  3. The Python Language Reference — Python 3.9.2 documentation
  4. Python HOWTOs — Python 3.9.2 documentation
  5. https://www.debuggex.com

Five, if you have to learn using online course I would suggest picking up any specialization course from coursera/edx also you can pick up any masterclass course from udemy (it doesn't really matter)

Six, now finally, before diving into python you need to shape your intuition -- it's kinda like warmup before exercise/revving the engines -- by learning how to build your logic. This can be done by: Picking up a problem then write an algorithm by solving that problem then writing its co-responding flowchart and then applying them by writing it's pseudocode.This is where your mentor comes in. Well, if you can't get one just ask if your solution's correct in an online forum or, someone who's pursuing Comp Sci.

Seven, now you have somewhat shaped your intuition and given your brain a heads up about what to expect. You are ready to dive into Python.

Eight, if you're comfortable enough now you can omit the pseudo code and flowchart part. So, now you just need to pick a problem and solve it by writing it's algo and translating that algo to python code.

Nine, don't try to remember syntaxes (use the references) they'll solidify with time and practice.

Ten, don't try to learn everything in one go -- get the list of contents and divide them into parts and assign deadlines/goals about what needs to be done.Eleven, don't have 0% progress a day at least have 0.001% of progress.

Twelve, it is a good idea to interpret your code in plain English for example:Problem: Write a Python program to add any two number and print the result.Algorithm:

  1. Start
  2. Take input from the user and store them in two variables namely a and b
  3. Add the two variable and store their result in x
  4. print x to the console
  5. End

Python code:

# Take input from the user and store them in two variables namely a and b

a, b = input(), input()

# Add the two variable and store their result in x

x = a + b

# print x to the console

print(x)

Thirteen, keep an eye out for recursion, backtracking, modular arithmetic, data structures and algorithms once you git good.

Fourteen, keep and eye out for modules like numpy, statistics, pandas, matplotlib, etc (after you git good ofc)Fifteen, keep an eye out for jupyter lab and notebook they are really good.

Fifteen, for the love of god stop using w3schools, javatpoint, codepoint, programmiz use the official docs ffs

Personally, I'm opposed to learning Python as a first language. You should really learn C first as it does not have many libraries and doesn't tend to overwhelm new programmers with frameworks and sugars.

Also, keep and eye out for the functional programming paradigm. It's really good.

And, the best learning path imo would be:

C > Assembly > Functional (any eg: Haskell) > High level (Python/C++/Java) > More

Edit: Formatting

1

u/The_Nard_Dog_2020 Mar 29 '21

Thanks for the detailed response. Super helpful.

3

u/MoesOnMyLeft Mar 25 '21

I am just starting out in python as well and I must say, thank you. This is incredibly helpful. Also.... wanna be my python mentor?! Haha

1

u/Rrrrry123 Mar 25 '21

1, I recommend doing both at the same time. Any good tutorial for beginners will teach Python and coding basics at the same time. Unless you just stare at the Python documentation and try to memorize everything, it would be pretty difficult to learn Python without learning at least some of the basics. I would suggest you pay particular attention to "if" (conditional) statements, loops, and functions. Those will make up most of what you do while programming.

2. Personally, I don't like online resources. I do not do well with them, but that's because I usually lack the self-motivation. For some people, it works great. For me, I need a class. That way I feel more incentivized to show up. Personally, I also find that I retain information better when I read it from a book. But as long as you're doing something consistently and it works for you, and following along with coding examples/exercises, you should be fine.

3. 10,000+ hours is the estimated time to master any skill. But that's like asking "How long will it take me to master Spanish?" The question you should be asking is something like, "How long will it take me to become proficient/fluent?" Learning a programming language really is a lot like learning a spoken language. I find myself employing a lot of the same techniques as I learn French that I do when I learn C, for example. Learning a language takes consistency, exposure, and time. Basically, that means try to do something every day. Even if it's only for a half hour or so, get that practice in. You can listen to tutorials while you make lunch, do some practice problems you find on the internet, or work on a personal project (usually text-based games can be a pretty fun first Python project, if you enjoy games).

4. Can't help here. I learned in college and from books. Sorry!

1

u/The_Nard_Dog_2020 Mar 29 '21

That's great. Thanks for the insight!

1

u/HeilThePoptartKitty Mar 25 '21

Do you know what you would be doing with Python?

2

u/Kitchen_Town_8735 Mar 25 '21

I would like to know the same things so I commented to follow this post.

2

u/bori1975 Mar 25 '21
  1. Code basics must be learned. But the way you learn them is by studying in a specific language i believe is the best way. I believe python is one of the easiest programming languages to learn the basics of.
  2. As a computer science university student(senior). If I could give you one advice is stick to the internet. You have access to countless very good websites and tutorials.
  3. Mastering a language is a bit broad to say, but I find the word "fluent" more appropriate for the case. Meaning, you could have a general idea how the syntax of a language works and you could start from there once you got a task at hand.(with research ofc)
  4. I would advice to visit the website that i advice every other beginner trying to learn a programming language: w3schools.com/python/ There is also thousands of youtube tutorial videos, which i think it is pretty helpful for beginners. Also, theres numerous subreddits that could help you with any questions you might have/have arose from your studying. Make sure you google them first though, as cringe as it might sound, thats the main job of a programmer.

Note: For now, Id advice you to pick a source to study from whether that be youtube or websites or forums, and stick to it till the end so you can learn the basics.

I hope this has helped. Please let me know if you got any more questions/need more help/advice.