Q1_20251108110340.webp
S

Q1_20251108110340.webp

9341
1
153
2. Prints a list of Armstrong numbers (an Armstrong
number is a number that is equal to the sum of its
own digits raised to the power of the number of
digits eg. 153=13+53 +33=1+125+27=153) sorted in the
file. (2 points)
The output should be:
2
Your selection (1 -> 2):
data.txt
OUTPUT
[1, 153, 370, 371, 407]
Question 3 (4 points)
Write a program in the python programming language
using object-oriented programming techniques. The
program enters a list of teachers, each with name, age,
and class information.
1. Input Teachers' information and print the list of
teachers. (1 point)
The output should be:
Zoom
- FUO
+ 100%
1
Your selection (1 -> 3):
Enter the number of teachers: 3
Enter teacher 1
Close
Chưa có bình luận nào.

Thông tin

Category
PFP191
Thêm bởi
strong_will
Ngày thêm
Lượt xem
2,154
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom