Python for Engineers

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

Blog Pages

▼

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...

Creating a dictionary and traversing

›
d={10: 'iprg' , 22: 'Nan', 33:'Kool',8: 'Jool' } # Creating a dictionary with key: value pair for i in d: ...

Tuples Manipulation

›
try:       l=['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturd...
‹
›
Home
View web version
Powered by Blogger.