[Python] Multiplication table using for statement

I made a multiplication table using the for statement.

for i in range(1, 10):
    for j in range(1, 10):
            print(i * j, end=' ')
    print()

end specifies what to output after printing data with print (end) This time space ** * If nothing is specified, the line feed code will be specified. ** **

output

1 2 3 4 5 6 7 8 9 
2 4 6 8 10 12 14 16 18 
3 6 9 12 15 18 21 24 27 
4 8 12 16 20 24 28 32 36 
5 10 15 20 25 30 35 40 45 
6 12 18 24 30 36 42 48 54 
7 14 21 28 35 42 49 56 63 
8 16 24 32 40 48 56 64 72 
9 18 27 36 45 54 63 72 81 

Recommended Posts

[Python] Multiplication table using for statement
Python basics ② for statement
[Python] for statement error
[Python / PyQ] 4. list, for statement
Python Exercise for Beginners # 2 [for Statement / While Statement]
Python for statement ~ What is iterable ~
[TouchDesigner] Tips for for statements using python
[Python] Reasons for overriding using super ()
Introductory table of contents for python3
[Python] File operation using if statement
Notes for using OpenCV on Windows10 Python 3.8.3.
Python development environment for macOS using venv 2016
[Python] Matrix multiplication processing time using NumPy
[50 counts] Key transmission using Python for Windows
[python, multiprocessing] Behavior for exceptions when using multiprocessing
How to display multiplication table in python
Tips for using python + caffe with TSUBAME
[Python] Scraping a table using Beautiful Soup
Notes for using python (pydev) in eclipse
2016-10-30 else for Python3> for:
Python if statement
python [for myself]
For Else statement
[Python] if statement
Python assert statement
Scraping using Python
Python pandas: Search for DataFrame using regular expressions
Get note information using Evernote SDK for Python 3
Refined search for Pokemon race values using Python
[Introduction to Udemy Python3 + Application] 43. for else statement
Don't use readlines () in your Python for statement!
Let's make a module for Python using SWIG
Let's analyze Covid-19 (Corona) data using Python [For beginners]
About Python for loops
Initial settings for using Python3.8 and pip on CentOS8
[BigQuery] How to use BigQuery API for Python -Table creation-
Operate Redmine using Python Redmine
Searching for pixiv tags and saving illustrations using Python
Extendable skeletons for Vim using Python, Click and Jinja2
Fibonacci sequence using Python
Directory structure for test-driven development using pytest in python
Data analysis using Python 0
[Heroku] Memo for deploying Python apps using Heroku on Windows [Python]
Django Python shift table
About Python, for ~ (range)
Data cleaning using Python
python textbook for beginners
Explore Alibaba Cloud Function Compute for DevOps using Python 3.0
Refactoring tools for Python
Using Python #external packages
python for android Toolchain
[Python] Summary of table creation method using DataFrame (pandas)
Age calculation using python
Search Twitter using Python
A Java programmer studied Python. (for, if, while statement)
Name identification using python
Notes using Python subprocesses
Memo for building a machine learning environment using Python
Try using Tweepy [Python2.7]
OpenCV for Python beginners
[Introduction to Python] How to write repetitive statements using for statements