Ответ:
Объяснение:
1)
a = int(input("Число А "))
b = int(input("Число B "))
c = b-a
while a <= b:
print(a**2)
a = a+1
2) num = 1231213
s = str(num)
numbers = []
i = 0
for elem in s:
numbers.append(elem)
i += 1
print(sum((int(numbers[i]) for i in range(0, int(len(numbers))))))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Объяснение:
1)
a = int(input("Число А "))
b = int(input("Число B "))
c = b-a
while a <= b:
print(a**2)
a = a+1
2) num = 1231213
s = str(num)
numbers = []
i = 0
for elem in s:
numbers.append(elem)
i += 1
print(sum((int(numbers[i]) for i in range(0, int(len(numbers))))))