Skip to content

Commit fabc91b

Browse files
committed
doc: add comments
Exercises manipulating text. Separating digits from a number.
1 parent d8785d7 commit fabc91b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex023.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Separating digits from a number
12
#23- Write a program that reads a number from 0 to 9999 and displays each of the separate digits on the screen.
23
number = int(input('Informe um número:'))
34
unit = number // 1 % 10
@@ -11,6 +12,7 @@
1112
print(f'Your thousand is {thousand}.')
1213

1314

15+
#Separando dígitos de um número
1416
# 023: Faça um programa que leia um número de 0 a 9999 e mostre na tela cada um dos dígitos separados.
1517
'''numero = int(input('Digite um número qualquer:'))
1618
print(f'Analizando o numero {numero}....')

0 commit comments

Comments
 (0)