کد پاسخ سوال هفدهم پایتونی شو
n = int(input())
Tetrahedron = 4
Cube = 6
Octahedron = 8
Dodecahedron = 12
Icosahedron = 20
x = 0
for i in range(0, n):
m = input(“”)
if m == “Tetrahedron”:
x = x + Tetrahedron
if m == “Cube”:
x = x + Cube
if m == “Octahedron”:
x = x + Octahedron
if m == “Dodecahedron”:
x = x + Dodecahedron
if m == “Icosahedron”:
x = x + Icosahedron
print(x)
جدیدترین ها
مشاهده همه