subject

Create a function that takes a list of numbers between 1 and 10 (excluding one number) and returns the missing number.

● Step 1: Create a function missing_num() and pass lst as a parameter inside this

function, where lst is the list of numbers from 1 - 10 with one missing number.

● Step 2: Run a for loop in range 1 - 11 i. e. from 1 to 10. Inside the for loop, check

whether the number n is present in the list using an if condition.

● Step 3: Inside the for loop, check whether each number is present in the list lst

using an if condition and in and not in operator. If the number is not present in the

list lst[], then print that number in the output.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
Create a function that takes a list of numbers between 1 and 10 (excluding one number) and returns...
Questions
question
Mathematics, 21.06.2019 19:30
question
Mathematics, 21.06.2019 19:30
Questions on the website: 13722363