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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started