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, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
Answers: 2
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
Chemistry, 16.12.2020 19:50
question
Mathematics, 16.12.2020 19:50
question
Computers and Technology, 16.12.2020 19:50
question
Mathematics, 16.12.2020 19:50
question
Mathematics, 16.12.2020 19:50
question
Mathematics, 16.12.2020 19:50
Questions on the website: 13722367