Basic Concepts of Pythons What is Python ? Python is high-level programming language. It has been used in numerous areas, including web programming , scripting , scientific computing , and artifical intelligence . There are three major versions of Python. They are Python1.x, Python2.x and Python3.x Let's start learning Python. You need to write yourself and run the code. NEVER EVER copy and paste the code. Your First Program Just like other programming languages, Let's start with "Hello World !" program. What is "Hello World Program"? It is the first program in nearly every programming language for every programmer. It displays the words, "Hello World". It doesn't really print anything on the paper. In Python, it looks like this: print("Hello World") After writing the code above in your program, click on run button.(click e...
Revision In Tutorial 1:Hello World Program , we've learnt how to print the words. In Tutorial 2:Doule Quote or Single Quote , we've written two program that prints I'm Aung Aung. (one program using double quotes and one using double quotes) Review Exercise 1: What happens if you leave out both the quotation marks? Review Exercise 2 :Write a program that prints 5 (by using either single quotes or double quotes). What happens if you leave out both the quotation marks? Review Exercise 3 : What function is used to display the words to the user? In Review exercise 1, you will get error message. But in Review Exercise 2, you won't. This is because 5 and "I'm Aung Aung" belong to different data types: 5 is an integer while "I'm Aung Aung" is a string. In Python, the print() function doesn't need any quotes to print the integer value, but it needs either two single quotes or two double quotes to print the string value. A value is one of the ba...