1# hello world
2print("hello world")
3
4#usage of sep()
5print(10,1,2001,sep="/")
6
7#usage of end()
8l = ["d","x","4","i","o","t"]
9for i in l:
10 print(i,end="")
11
1# Print statements in python
2
3# A usual print() statement looks like this:
4
5print("Hello from the print statement!")
6
7# A print statement starts with print( , as it is a built-in function
8
9# It contains any given value that can be printed to the console. (ex. "Hello!")
10
11# It ends with a closed bracket
12
13# A few more examples:
14
15
16name = input("Enter a name :\n") # asks for a name
17print(f"Your name is {name}") # Your name is <whatever name you entered>
18
19print(1 + 2) # 3
20
21print(not True and not False) # False
22
23