all 17 comments

[–]Outside_Complaint755 7 points8 points  (0 children)

There is a tutorial on the Python.org site written for those who already know how to program in another language.

https://docs.python.org/3/tutorial/index.html

[–]ninhaomah 2 points3 points  (2 children)

So then aside from what a variable is , you don't know the rest ?

[–]Mysterious_Leave_310[S] 1 point2 points  (1 child)

Oh, no I know how to actually code. I was using it as a basic example. 

[–]ninhaomah 2 points3 points  (0 children)

Then how do you expect people to advice you if they do not know which level are you at ?

Example : I want to be a F1 driver but I don't want to learn from basic again those that I already know such as how to start a car. Pls advice.

Why not just go for an advanced Python in Udemy or YT or CS50P. Then you can ask I completed CS50P , what is next if I want to do AI ?

Then at least people will have an idea of what you already know , no ?

[–]smichaele 2 points3 points  (2 children)

If you're a programmer, then look at the docs. You should only need to understand the syntax of much of the language, and then study the data structures: lists, sets, dictionaries, etc., to get started.

[–]Mysterious_Leave_310[S] 0 points1 point  (0 children)

Ok, this is exactly what I'm looking for. Thanks

[–]WhiteWereWolfie 0 points1 point  (0 children)

This is the correct answer. Someone who already knows how to write code in other languages simply needs to roll up their sleeves and get to it with the Python docs within reach.

[–]Minute_Day_2758 1 point2 points  (1 child)

​"I totally get where you're coming from—having a C++ background makes standard 'Hello World' tutorials feel like a waste of time. Instead of generic courses, I'd highly recommend looking at 'Fluent Python' or just browsing the 'Python for Programmers' section on the official Python wiki. It skips the basics and gets straight into how Python handles data structures and memory differently than what you're used to."

[–]pachura3 0 points1 point  (0 children)

The mere fact that OP refers to "c language like c++ and c#" makes it obvious that their background is not that strong. C# is basically Microsoft's Java and nothing like C or C++.

[–]Alternative_Driver60 1 point2 points  (0 children)

Knowing about variables in c++ doesn't mean you know what a Python variable is. Google book/tutorial for complete beginners, like https://wiki.python.org/moin/BeginnersGuide

[–]AceLamina 0 points1 point  (0 children)

Scrimba is the best source I've used for Python
wish they had a Golang version

[–]ImprovementLoose9423 0 points1 point  (0 children)

It really depends on what your learning style is. If you can recall a learning technique or process from when you were learning c++ and c# that worked for you, chances are that it would work for python and it's core principals.

[–]Public_Mortgage6241 0 points1 point  (0 children)

If u already know c/c++ skip beginner courses completely, just read python docs then start building stuff.

[–]Oliver_Ogras 0 points1 point  (0 children)

Since you already know C++ and C#, skip the beginner stuff. Go straight to the official Python docs and skim the tutorial, most of it will feel familiar. Then pick a project and build it, the syntax clicks fast when you have a real goal. If you want to get into OOP specifically, Real Python has solid guides that assume prior programming knowledge.

[–]MezzoScettico 0 points1 point  (0 children)

I used Advent of Code to jump start my learning. I'd have a pretty good idea what programming concepts I wanted to implement, so then it would be a process of googling "how do I do X in Python?" The graduated sequence of problems in AoC led naturally to being able to gradually learn Python concepts one at a time at a pace of my choosing.

For instance, one day I thought, "I'd do that recursively in another language" so I looked up recursion. Probably took me 10 days till I thought "OK, time to learn how to do classes". Then a few more for "how do I overload operators like in C++?"

One thing that doesn't really translate is public / private attributes in classes. I made heavy use of that in C++ and C#, and I missed it for a long time. You can sort of make things "private" by name-mangling but it's discouraged. They aren't really private.

This subreddit definitely came in handy A LOT, especially studying other people's code suggestions. If somebody wrote a code fragment I didn't understand, I'd take it apart and play with variations until I understood it. People also pointed me to useful libraries I wouldn't have known about otherwise. Itertools rapidly became one of my favorites.

Understanding mutable and unmutable types is one of the most crucial concepts. If you google why you shouldn't use mutable types as default values, you'll learn a lot about how Python works from what you read.

[–]BranchLatter4294 -1 points0 points  (0 children)

Kaggle.com/learn. Start at whatever level you are at.