Python Pr01
Python Pr01
Input :
data = ["mumbai","dhule","nashik"]
data.append("delhi")
print(data)
data.remove("mumbai")
print(data)
#Concadination of strings
result =str1+str2
print(result)
#Conditional statements
if (str1==str2):
print ("Its the same")
else:
print("its not the same")
Output :
PS C:\Users\Admin\.ipython> &
C:/Users/Admin/AppData/Local/Programs/Python/Python312/python.exe
c:/Users/Admin/.ipython/hello.py
Sum is 101
Substraction is : 11
Division is: 28.0
Multipication is: 2520
[3, 8, 9]
['mumbai', 'dhule', 'nashik', 'delhi']
['dhule', 'nashik', 'delhi']
False its not correct
True this one
Hllo Wo
Hello World!Hello Python
Its not the same