Journey...

Somewhere I read Consider your job as a mode of transport. You get onto this to reach your destination. If it breaks down, you don't just wait and complain, you find another vehicle and continue your journey. The most important part is, You need to know the destination. This is…

Create and initialize a list in python

Create a list and initialize it with some default values. #create a list of 10 elements with default value as 0 >>> my_list = [0]*10 >>> my_list [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]Later you can assign the value to…