- #1
Sunwoo Bae
- 59
- 4
- Homework Statement:
- I have to print every other input.
- Relevant Equations:
-
you are not given input to put in or the total number of input, but the input shows a total number of strings in the first line and the rest consists of alternation of string and integer.
for example, the input can be:
3
12
tiger
11
cats
10
dogs
I want my output to read only the integers. Here's my attempt:
number = int(input())
for i in range(2, number+1, 2):
print(input())
number = int(input())
for i in range(2, number+1, 2):
print(input())