Python Tutorial For Beginners: Section-1 Number_2
( Hex octal and Binary & Arithmetic Operator )
#Number Format in Hex octal and Binary & Arithmetic Operator Example
a=0b100 print (a) #Output is #4 a=0xa print (a) #Output is #10 a=0o100 print (a) #Output is #64 print ("Arithmetic Operator Example") # Arithmetic Operator Example a=10 b=20 #Addition Operator print (a+b) #Output is #30 #Subscraction Operator print (b-a) #Output is #10 #Division Operator print (b/a) #Output is #2.0 #Multiplication Operator print (a*b) #Output is #200 #Power operation c=2 d=2 print (c**d) #Output is #4 #floordir e=9 f=2 print (e//f) #Output is #4 #percentage Operation print (e%f) #Output is #1 |
I must appreciate you for providing such a valuable content for us. I found so many interesting stuff in your blog Helped a lot in increasing my knowledge eBay contact telefoonnummer
ReplyDelete