S
S
sosme2020-06-16 12:27:53
Python
sosme, 2020-06-16 12:27:53

How to write number inside shapes (circle and rectangle) in python?

How to write number inside shapes (circle and rectangle) in python? I am making a calculator

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2020-06-16
@sosme

Calculate the center of the figure and enter text there, taking into account the size of this text (the number must be converted to a string)

T
Timur Pokrovsky, 2020-06-16
@Makaroshka007

------------
| 1 | 2 | 3 |
------------
| 4 | 5 | 6 |
------------
| 7 | 8 | 9 |
------------
① ② ③
④ ⑤ ⑥
⑦ ⑧ ⑨

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question