Python for Engineers

Solve Problems by Coding Solutions - A Complete solution for python programming

Blog Pages

▼

Reverse of a number using functions

›
def intreverse(Number):   Reverse = 0          # Initialize the reverse value to overcome garbage value storage   while(Number > 0):     ...

What is the type of each of the following expressions (within the type function)?

›
print type(5)         <type 'int'> print type("abc")  <type 'str'> print type(True)   <type ...

New Dictionary Creation and updation

›
student ={'john':50,'Tom':60,'Nina':82} print 'First Time:',student newstudent=student print 'First T...

Transpose of a matrix (nested list) in python

›
row1 = [13,25,73] row2 = [54,95,36] row3 = [27,98,19] matrix = [row1, row2, row3] trmatrix = [[row[0] for row in matrix],[row[1] for row in ...

Manipulation the Dictionary

›
d={10: 'iprg' , 22: 'Nan', 33:'Kool',8: 'Jool','y': 89,'tt':'toy',7:90 } for i in d...
‹
›
Home
View web version
Powered by Blogger.