forked from vishalmoc/Vishal_Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPython.py
31 lines (24 loc) · 774 Bytes
/
Python.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Input
a= input("Enter the value:- ")# Don't forget to give input each time this code is executed
b= int(input("Only Integer else there will be an error:- "))
c= float(input("Only Float else there will be an error:- "))
# Output
print(a)
print(b+ c)
print(5+2)
print("Python")
print(7,8.12,"Python ", sep= "-", end= "$")
# Multiple Output
print(a,7,8,6+5)
# Comments - lines that will not be executed
# Single- Line Comment
'''
Multi- Line Comments used to comment multiple line,
instead of using # each time.
'''
"""
We can also use Double- Quoted-
Three- inverted- commas
"""
# Escape Sequence Character- For functions that normally cannot be used in strings like /n /t /" /'
print("This is for escape sequence\t \" We can use\" symbol too\n Escape Sequence")