Sakibmoon.

How to Start with Python

Python

Python is a wonderful programming language to learn. It’s simple yet elegant. If you want to learn Python you need to go about as any other language but unlike other language like C/Java/C#, it’s dynamic nature makes it easier to pick it up.

Every programming language has basic concepts that you need to learn. I will go over these basic concepts from the point of python language

  • Variables

Variable is one of the most important concept for any programming language. Variable is just a place in memory where you can store values which can be used at a later time. As Python is a dynamic language, you don’t need to declare the type of the variable.

cost = 100
name = "jane"

You can reassign a value to an already declared variable. You can use built in function type to check a variable type

>>> var1 = "This is string"
>>> type(var1)
<class 'str'>
>>> var1 = 32.5
>>> type(var1)
<class 'float'>