Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. tot_rows = int(input("Input the total number of rows:"))
  2. tot_cols = int(input("Input the total number of columns:"))
  3. a =[[5 for oddrows in range(1, tot_rows)]for EachCol in range( 0, tot_cols )]
  4. #a = [0 for evenrows in range(0,tot_rows,2)]
  5.  
  6. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement