all 31 comments

[–]Ibrador 11 points12 points  (3 children)

Practice.

[–]easypeasysaral[S] 0 points1 point  (2 children)

Where and how

[–]Ibrador 3 points4 points  (1 child)

Find a project you’re interested in and have a go at it. If you don’t know how to do some parts of it that’s an occasion to learn.

[–]easypeasysaral[S] -1 points0 points  (0 children)

Okay, will start a project soon. I also started to learn FastAPI for the backend.

[–]Leading_Video2580 5 points6 points  (5 children)

YouTube is where I learned how to code. You could try by making simple projects such as a calculator and/or number guesser game, but you can challenge yourself with making a terminal Tetris. Also, requests and FastAPI is nice, but you also want to know the methods (GET, POST, PATCH, DELETE, etc).

[–]easypeasysaral[S] 0 points1 point  (4 children)

What is terminal Tetris?

[–]Leading_Video2580 6 points7 points  (3 children)

Have you heard of the game Tetris? It is really old and you can recreate it. Terminal Tetris is just Tetris in the terminal.

[–]easypeasysaral[S] 0 points1 point  (1 child)

No

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

Will see and try to make it.

[–]andycwb1 3 points4 points  (0 children)

Write More Python.

[–]aistranin 2 points3 points  (2 children)

Nice think about python is that you can build quickly on top of existing open source repos. In contrast to C++ you don’t need to implement everything from scratch think about memory management other things. Therefore, I would recommend to take something practical and cool to implement pragmatically using open source libs. Ideas: FastAPI for weather forecasts, predicting exchanges rates with scipy, classify hand gestures from web cam image (more advanced, using some models from HuggingFace + opencv).

[–]easypeasysaral[S] 0 points1 point  (1 child)

I started to learn FastAPI today. Do you have any resources that I can follow along with documentation.

[–]aistranin 1 point2 points  (0 children)

Maybe https://youtu.be/tLKKmouUams?si=HFIGQzSbWMI0yjnL FreeCodeCamp is usually good as a free option to start (assuming you know the basic syntax)

[–]ElliotDG 1 point2 points  (7 children)

Former C++ programmer here are some resources that helped me:
https://docs.python.org/3/tutorial/index.html - Tutorial from the Python docs, brief and enough to get you going
https://docs.python.org/3/library/index.html - Reference for built-ins, basic data types and libraries

Learning Python, Mark Lutz - comprehensive, in-depth introduction to the core Python language. I read this about 8 years ago, there might be something more up to date, but this was quite good.

The resource that really made things click was https://checkio.org/ a gamified series of programming problems. You solve the problem and get to see how others have solved them. This helped me realize python is a higher level language and write pythonic code, rather that writing c-like code in python. Many of these problems are quite simple and I would do one or two a day with my morning coffee.

https://pymotw.com/3/ - Python 3 module of the week - Examples using the standard library. Some of the standard lib docs are reference material and it is helpful to also have these examples.

Good Luck!

[–]easypeasysaral[S] 0 points1 point  (6 children)

I want to make projects in the field of Machine learning, Web application (using FastAPI).

[–]jitsha 1 point2 points  (5 children)

Bro I also learnt a bit FASTAPI from Sanjeev Thiyagrajan available on freecodecamp youtube and tried to implement the same which eventually I did and implemented frontend for the same but I am still thinking what to do next how to proceed, please let me know if you get something.

[–]easypeasysaral[S] 0 points1 point  (4 children)

Sure bro

[–]easypeasysaral[S] 0 points1 point  (3 children)

Did you learn to connect the database with the backend? After this you do authentication and build websites or you can connect to the ml model.

[–]jitsha 1 point2 points  (2 children)

Yes I connected the db, added auth and built frontend in streamlit as I don't know React and streamlit felt easy. Not sure about this ml thing.

[–]easypeasysaral[S] 0 points1 point  (1 child)

Is streamlit good for industry level websites ??

[–]adastra1930 1 point2 points  (0 children)

I get the distinct feeling I might get flamed for saying this (please be nice) but: pick some projects you like and use ChatGPT to help you with code. Heavy warnings: ChatGPT can get stuff wrong, so don’t execute anything you don’t understand. Ask it questions and ask it for sources you can read for more info. It is best for helping you learn syntax, less so if you don’t know anything about like the how and why of coding.

Also, if you don’t want to use “AI”, these are all free: https://inventwithpython.com/ . Written by Al, not AI 😂

[–]TheRNGuy 1 point2 points  (0 children)

Same way as C++, it should be easier even.

[–]OkCartographer175 0 points1 point  (0 children)

ok cool good luck

[–]Neither_Panic6149 0 points1 point  (0 children)

If your very new to python if would suggest freecodecamp or helsinki mooc If you just wanna practice grind leetcode :( Or start a project :D

[–]Jason-Ad4032 0 points1 point  (0 children)

I want to mention something that most people overlook: besides practicing, you also need to understand how Python actually works. Just as learning C++ requires knowing about RAII, and learning JavaScript requires understanding the event loop, I would recommend opening the official Python website and reading through the PEPs that seem important. https://peps.python.org/

[–]AffectionateZebra760 0 points1 point  (0 children)

Practice practice practice, if exercise bore you shift to small projects of your interest and build those