Question: Implement in Python code Input The input is on two lines. The first line contains a single integer 1 n 1 0 0 0 .

Implement in Python code
Input
The input is on two lines. The first line contains a single integer
1n1000. The second line contains n integers -1018ai1018,
where ai denotes the temperature on the i-th day.
Output
Print two integers, first the highest temperature and then the lowest
temperature from the last n days.
Scoring
Sample Input 1
7
-3,-2,-1,0,1,2,3
Sample Output 1
3-3
Implement in Python code Input The input is on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!