封装函数
def temp_convert(a):
b = a * 8 + 10
return b
c = int(input("input:"))
f = temp_convert(c)
print("output:" + str(f))
append
pop
numbers = [23, 33, 43, 53, 63, 73]
even = [ ]
odd = [ ]
while len(numbers) > 0:
number = numbers.pop( )
if(number % 3 == 0):
even.append(number)
else:
odd.append(number)
print(even)
[63, 33]