Question: **Python for Data Analysis Book** Part 7 Write a program to create a function show_employee() using the following conditions. It should accept the employees name

**Python for Data Analysis Book**

Part 7

Write a program to create a function show_employee() using the following conditions.

It should accept the employees name and salary and display both.

If the salary is missing in the function call then assign default value 9000 to salary

Part 8

Create an outer function that will accept two parameters, a and b

Create an inner function inside an outer function that will calculate the addition of a and b

At last, an outer function will add 5 into addition and return it

Part 9

Write a program to create a recursive function to calculate the sum of numbers from 0 to 10.

A recursive function is a function that calls itself again and again.

Part 10

Below is the function display_student(name, age). Assign a new name show_student(name, age) to it and call it using the new name.

def display_student(name, age):

print(name, age)

display_student("Emma", 26)

Part 11

Generate a Python list of all the even numbers between 4 to 30

Part 12

Find the largest item from a given list x = [4, 6, 8, 24, 12, 2]

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!