Question: answer should be in phyton Language: Python 3 ( i ) Environment User - Defined Functions - [ Hard ] - Unit 7 . 2

answer should be in phyton Language: Python 3
(i) Environment
User-Defined Functions -[Hard]-
Unit 7.2
Complete the function return_third.
The function takes a list of integers, num_list, as
input, and should return the third item in the list. If the
list has fewer than 3 items, it should return -1.
As an example, if the function is passed the list ,
3,4], it should return 3.
1># !/bin/python3...
10
11 #
12 # Complete the 'return_third' function bel
13
14 def return_third(num_list):
15 # Write your code here
 answer should be in phyton Language: Python 3 (i) Environment User-Defined

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 Databases Questions!