SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top