Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Write a function in python to sort n numbers of integer stored in a list passed as parameter in
Home
Education
Write a function in python to sort n numbers of...
asked
Dec 14, 2021
in
Education
by
JackTerrance
Write a function in python to sort n numbers of integer stored in a list passed as parameter in function selesort(L[],n) Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 14, 2021
by
JackTerrance
Best answer
Explanation: def selesort(L, n): L.sort() return L n = int(input(‘enter how many numbers to sort:’)) L = [] for i in n: num = int(input (‘enter number:’)) L.append(num) selesort(L,n)
Related questions
0
votes
Q: Function parameters that are passed to a CALEE are accessed as ______(where n: offset)
Function parameters that are passed to a CALEE are accessed as ______(where n: offset) Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a python program to print first n(entered by user) even natural numbers.
Write a python program to print first n(entered by user) even natural numbers. Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to read an integer and find its reverse. note: if user enter 1234 then the output should be 4321 in Python
write a program to read an integer and find its reverse. note: if user enter 1234 then the output should be 4321 in Python Select the correct answer from above options...
asked
Dec 2, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores the
Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores them as 5 bit ... 4: 9 bits Op 5: Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: ________ function generates “n” normal random numbers based on the mean and standard deviation arguments passed to the function.
________ function generates n normal random numbers based on the mean and standard deviation arguments passed to ... R Programming Select the correct answer from above options...
asked
Feb 15, 2022
in
Education
by
JackTerrance
r
programming
c
0
votes
Q: write a program in Python to print the sum of the following series: s=1+x+x^2+x^3+…..+x^n
write a program in Python to print the sum of the following series: s=1+x+x^2+x^3+…..+x^n Select the correct answer from above options...
asked
Dec 9, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in python to obtain 3 numbers and print their sum.
write a program in python to obtain 3 numbers and print their sum. Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: read the data from employee. text file and sort on age using counting sort,merge sort,quick sort and write the sorted data to another file ‘sortedemponage.txt’.
read the data from employee. text file and sort on age using counting sort,merge sort,quick sort and write ... sortedemponage.txt'. Select the correct answer from above options...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a sort note about the calculation of the date in worksheet?
write a sort note about the calculation of the date in worksheet? Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure)
Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure) Select the correct answer from above options...
asked
Dec 14, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to take a string parameter (st) of a function reversing(). Reverse the sentence in s
Write a program to take a string parameter (st) of a function reversing(). Reverse the sentence in sucha way so ... None Hate All Love Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a C program to accept an integer numberbetween 1 and 9. Write the value of the number
Write a C program to accept an integer number between 1 and 9. Write the value of the number in words. Select the correct answer from above options...
asked
Dec 14, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write an algorithm to accept an integer number and print the factors of it
write an algorithm to accept an integer number and print the factors of it Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 1. Write a function in python to read the content from atext file “poem.txt” line by line and display the same on
1. Write a function in python to read the content from a text file “poem.txt” line by line and display the same on screen Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 29: Write a program in python to make a simple calculator using function
29: Write a program in python to make a simple calculator using function Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...