Sunday, August 20, 2017

python part 2

Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print("hello")
hello
>>> print("hii prakash")
hii prakash
>>> a=10
>>> print(a)
10
>>> name ="prakash"
>>> print(name)
prakash
>>> b=12.23
>>> print(b)
12.23
>>> a=12
>>> b=23
>>> c=a+b
>>> print(c)
35
>>> c=a-b
>>> print(c)
-11
>>> c=a*b
>>> print(c)
276
>>> c=a/b
>>> print(c)
0.5217391304347826
>>> c=a%b
>>> print(c)
12
>>> prakash=dev=puneet=abhi=akash=virat=tanya=rashi=animesh="BBD"
>>> print(abhi)
BBD
>>> print(animesh)
BBD
>>> print(virat)
BBD
>>> student,fee,father="prakash",12,"father"
>>> print(fee)
12
>>> print(father)
father
>>> 

No comments:

Post a Comment