How to write comment || backslash || Variable datatype using Python
Python is a robust Language. Huge coders are regularly using python for coding. Today we learn how to write comments in your Python coding. a comment is very important.
Python is a versatile and powerful programming language used extensively in many industries. It is known for its ease of use and readability, as well as its ability to integrate well with other programs.
#Start Coding
# Here you see that the coding get a error, lets solve it
# this is a Int Value
# give a hash and it will be single line comment in python.
print(10)
print("Mahmud Hasan")
#This is multiple line comment
'''
are you sure this 2nd print is working???
No
because its string value
'''
# Now we learn about the backslash in Python
print("Mahmud \t Hasan")
print("Mahmud \nHasan")
# \t means tab
# \n means new line
#its not working lets fix it
#we are providing the wrong sign, Now test again and run it
#its solved
#now we learn about the Variables
country_name = "USA"
#hare country_name is my variable
print("My country Name is "+country_name)
print(country_name+" is a small country")
print("I love "+country_name)
# here i am using a country name but if i need change it then i have a issue
# that every time i need to change for every line.
# First we run it
#lets run it again
#Here we have a mistake, lets find it.
#NOw ok
#lets change the country Name now.
#this is for the easy progamming in Python. Thanks For Watching
#END Coding
Python is an interpreted language, which means that it is run on a computer by being interpreted rather than being compiled. This makes it very fast to run and allows it to be used in various settings.
This Video is Help you write python code. Python is an open-source language, which means that it is freely available to be used by anyone. This makes it a popular choice for software development projects, as there are many available resources to help you get started.