Before we start I need to tell you I will be guiding you to write a program in pydroid3 found on playstore. The code will work on any platform but for other platforms you need to figure out for yourself how to start python and save the files etc.So, go on start pydroid3.
So, since we are here let's write a simple program. In this program we will display a statement "Hello There" on the output screen. That is if we run the program you will be able to see "Hello There" on screen. You need to type a line axactly as i do
print("Hello There)
Now when you write it and run the program you will be able to see the statement written in quote.
>>>>>>Hello There
Now, change the statement from "Hello There" to "Hi there" hi there will be displayed on the screen.
Explanation:
Here we have used a python function called print() which displays anything written between the brackets and about the quotes we use them to write any sentence or string or word or alphabet it will become more clear in next chapters.
So, now lets print another statement but this time it will be an integer. So just write the number in the print function but eithout quotes,like so
print(23)
You will see the number 23 on the output screen.
>>>>>>23
Note: Python is a case sensitive so look out for the names.Small letter and large letters are not the same. So,
"Print" will not print the program. "A" is not equal to "a" so be care
YOU ARE READING
Python Guide for Beginners
RandomThis is an easy to learn and absolutly no programming experience is required.You can start learning by opening this book right now.
