-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path4-printing.py
More file actions
23 lines (17 loc) · 771 Bytes
/
4-printing.py
File metadata and controls
23 lines (17 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name = "sars_cov_2"
disease = "covid19"
# This is simple print statement
print("The name of virus is ", name)
# This print statements works everywhere. if you want to add
# something in middle start or at the start of line
# you can use curly braces like i've mentioned in new print
print("The name of virus is {}".format(name))
# As you can see...
print("{} is the name of virus.".format(name))
# Now If you have multiple variables
# So Lets See
print("The name of the virus is {} and it causes {}".format(name, disease))
# You can use the 2nd way too but this only work in python3 or higher
print(f"The name of the virus is {name} and it causes {disease}")
# One more way if you need it which is called concatination
print("The name of the virus is" + " "+ name)