fork download
  1. from random import *
  2. print("СЛУЧАЙНОЕ ТРЕХЗНАЧНОЕ ЧИСЛО")
  3. a=randint(100,999)
  4. print("Полученное число:",a)
  5. s=a//100
  6. d=(a-s*100)//10
  7. e=a%10
  8. print("Сотни:",s)
  9. print("Десятки:",d)
  10. print("Единицы:",е)
Runtime error #stdin #stdout #stderr 0.02s 36944KB
stdin
4 5 6
stdout
СЛУЧАЙНОЕ ТРЕХЗНАЧНОЕ ЧИСЛО
Полученное число: 386
Сотни: 3
Десятки: 8
stderr
Traceback (most recent call last):
  File "./prog.py", line 10, in <module>
NameError: name 'е' is not defined