Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

In what ways can confl ict enrich relationships?

Answered: 1 week ago

Question

=+4 What are non-union workers representations?

Answered: 1 week ago