PYTHON
# Comparison Operators
#Assignment Operators
#Arithmetic Operators
print ("The value of 3+4 is", 3+4)
print ("The value of 3-4 is", 3-4)
print ("The value of 3*4 is", 3*4)
print ("The value of 3/4 is", 3/4)
TERMINAL.......
The value of 3+4 is 7
The value of 3-4 is -1
The value of 3*4 is 12
The value of 3/4 is 0.75
a = '''harry'''
b = 345
c = 45.32
d = True
#Printing the types of variables
print (type(a))
print (type(b))
print (type(c))
print (type(d))
<class 'str'>
<class 'int'>
<class 'float'>
<class 'bool'>
import os
print(os.listdir())
TERMINAL.......
['.android', '.VirtualBox', '.vscode', '3D Objects', 'AppData', 'Application Data', 'Contacts', 'Cookies', 'Desktop', 'Documents', 'Downloads', 'Favorites', 'IntelGraphicsProfiles', 'Links', 'Local Settings', 'Music', 'My Documents', 'NetHood', 'NTUSER.DAT', 'ntuser.dat.LOG1', 'ntuser.dat.LOG2', 'NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf', 'NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms', 'NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms', 'ntuser.ini', 'OneDrive', 'Pictures', 'PrintHood', 'Recent', 'Saved Games', 'Searches', 'SendTo', 'Start Menu', 'Templates', 'Videos', 'VirtualBox VMs']
print("Hello world")
TERMINAL...........
Hello world


Comments
Post a Comment