

As you see in the table above, the variable “ two” stores the integer 2, and “ some_number” stores 10,000.īesides integers, we can also use booleans (True / False), strings, float, and so many other data types. How simple was that? You just assigned the value 1 to the variable “one.” two = 2Īnd you can assign any other value to whatever other variables you want. Imagine you want to store number 1 in a variable called “one.” Let’s do it: one = 1 In Python, it is really easy to define a variable and set a value to it. You can think about variables as words that store a value. Quora, Pinterest and Spotify all use Python for their backend web development.


It was really natural to code in it and express my thoughts.Īnother reason was that we can use coding in Python in multiple ways: data science, web development, and machine learning all shine here. First of all, what is Python? According to its creator, Guido van Rossum, Python is a: “high-level programming language, and its core design philosophy is all about code readability and a syntax which allows programmers to express concepts in a few lines of code.”įor me, the first reason to learn Python was that it is, in fact, a beautiful programming language.
