Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tot_rows = int(input("Input the total number of rows:"))
- tot_cols = int(input("Input the total number of columns:"))
- a =[[5 for oddrows in range(1, tot_rows)]for EachCol in range( 0, tot_cols )]
- #a = [0 for evenrows in range(0,tot_rows,2)]
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement