Basic of the Basic: My Wholesome Guide to Python (Part 1)

Nepal Brothers
1 min readAug 21, 2021

What is it that you need to know that is enough for you to write python code. Honestly, like any other programming language, python share the similar structure. Although ,it has different syntax, if you were to start learning python, it should be very similar to any other programming languages.

These are mainly cheatSheet. But, if you want to get into more details in one of these topics, let me know in the comments and I will be happy to help you out there with additional and specific examples.

Where do I to run the python code

Use https://replit.com/languages/python3 to run python on browser.

Print statements

Variables

I want to combine first and lastname and print them!

Lets look at the wrong way and then the right way.

For Loop

Conditional if else statements

If/Else

What if you want to print the state the city is in. Say, if it is "Boston" then print "Massachusetts" or "Cupertino" then "California" .

That is what there is mostly in python. Now, lets go ahead and look at functions.

Functions

Reusability is the key for functions.

Dictionary

If you feel confident on these, lets go to little more advance topic in the next chapter. We will build on these foundations and explore the power of python little more.

--

--