Basics Of Python - Python Tutorials For Beginners #2


1.print()

1print("""Hello World
2I am the coder
3this is my first progrm.""")

Print is a function that is used to display value. Print is an essential function in Python programming. Print is a simple but very useful function. We generally use a Print function to display string and integer values. Print is the first function that we learn during Python programming. Print function are display the string, integer and float values. We use the Print function in our first program "HelloWorld".

2.input()

1x = input("Enter the number : ")
2print(x) 

Input is also a very important function. We use it to get input from the user. Generally, We take input from a user and store it in a variable for use later. Input is also like a print function but the difference here is a print function only displays the value. The input also displays the value but the program ends after getting input from a user.

3.Comments

1# This is my first program.
2# this is my comment.

Comments are text in code that is ignored by Python. Comment increases the readability of code and makes it understandable for others.

Creating Our First Program

1print("Hello World")
2
3# Output : Hello World

Related Blogs:
Installation and Setup of Python and VS Codium - Python Tutorials For Beginners #1
Why Coding Will Become The Most Valuable Skill In The Future?


Watch Video Tutorials On Youtube