Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i*j.
row_num = int(input("Input number of rows: "))
col_num = int(input("Input number of columns: "))
multi_list = [[0 for col in range(col_num)] for row in range(row_num)]
for row in range(row_num):
for col in range(col_num):
multi_list[row][col]= row*col
print(multi_list)
Also in C++:
- how to install react loader spinner
- login git in terminal
- dur Quintenzirkel übungen
- uninstall cordova plugin
- github actions
- powershell remove folder and contents
- uniinstall nginx
- how to install wordcloud in python
- how to install audacity on ubuntu
- git bash terminal weird characters
- Uninstall Expo CLI
- linux grt repository
- nvm install node
- git fetch upstream from master
- github remove a file from a commit
- clone the dev masters of the package git
- log cpu usage on linux
- $path linux
- bagisto
- how do you come back after git stash
- see name of origin + git
- linux commands list
- download chrome on ubuntu 20.04 unsupported file
- get system version