In our previous chapter we learned about our first program,
In this we will learn more programs which we can create in IDE of python.
We can use two executable statements in single line
print("Hello World!") print("This is 10xMorningStar.")
Hello World! This is 10xMorningStar.
In Python you, You can use Single quote ( ' ), Double quote ( " ) and Triple quote ( '" ) to represent strings.
word='10xMorningStar' sentence="This is 10xMorningStar" para="' We are 10xMorningStar. We provide free courses to educate young students.'" print(word) print(sentence) print(para)
10xMorningStar This is 10xMorningStar We are 10xMorningStar. We provide free courses to educate young students.
In Python you, You can write comments using (#) in front of comment line. A comment is ignored while execution.
# this is comment print("This is 10xMorningStar") # this is comment # this is comment
This is 10xMorningStar
Line Continuation: To write multiple lines without confusing python, we need to use backslash \.
add=10 + \ 5 + \ 3 print(add)