Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
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)
Home
Education
Write a program in python to insert ten friends...
asked
Dec 14, 2021
in
Education
by
JackTerrance
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
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 14, 2021
by
JackTerrance
Best answer
Explanation: q=[] for i in range(10): a=input(‘enter the name of your friend ‘+str(i+1)+’ ‘) q.append(a) print(q[2],q[4],q[8]) I think I might be right
Related questions
0
votes
Q: WRITE A PROGRAM TO READ DETAILS LIKE NAME, CLASS , AGE OF A STUDENT AND THEN PRINT THE DETAILS FIRSTLY IN SAME LINE AND THEN IN SEPERATE LINES
WRITE A PROGRAM TO READ DETAILS LIKE NAME, CLASS , AGE OF A STUDENT AND THEN PRINT THE DETAILS FIRSTLY IN ... THEN IN SEPERATE LINES Select the correct answer from above options...
asked
Dec 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Simran write a code print: (“hello friends”)but when she executed there comes an error what was the error and why did it occur
Simran write a code print: (“hello friends”)but when she executed there comes an error what was the error and why did it occur Select the correct answer from above options...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Penny has 5 children, 1st is January, 2nd kid February, 3rd is called march , 4th is April. What is the name of the 5th.
Penny has 5 children, 1st is January, 2nd kid February, 3rd is called march , 4th is April. What is the name of the 5th....
asked
Feb 11, 2021
in
Education
by
JackTerrance
logic-puzzles-questions-answers
0
votes
Q: → Write a program to print your detailsint soll Number, string className, string Name.
→ Write a program to print your details int soll Number, string className, string Name. I want this program with ... for lifetime 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 program in c++ to interchange 2 values without the 3rd variable.
write a program in c++ to interchange 2 values without the 3rd variable. Select the correct answer from above options...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and print all palindrome words in the sentence present. Java class 10
write a program to enter a sentence and check if it contains palindrome words or not. if yes then count and ... present. Java class 10 Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program that inputs a strig and then print the string, equal to number of times its length
write a program that inputs a strig and then print the string, equal to number of times its length Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to display and find the sum of any ten natural number.
write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked
Dec 5, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to display and find the sum of any ten natural number.
write a program to display and find the sum of any ten natural number. Select the correct answer from above options...
asked
Nov 26, 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: 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 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 to store 10 names in an array. Arrange these in alphabetical orderby sorting. Print the sorted list.Take single word names, all in capital letters, e.g. SAMSON, AJAY, LUCY, etc.
Write a program to store 10 names in an array. Arrange these in alphabetical orderby sorting. Print the sorted list. ... , LUCY, etc. Select the correct answer from above options...
asked
Dec 12, 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: .1. Find the output of the following programs.(a) 10 LET AS = “HELLO”20 LET BS = “FRIENDS”30 PRINT AS:BS
. 1. Find the output of the following programs. (a) 10 LET AS = “HELLO” 20 LET BS = “FRIENDS” 30 PRINT AS:BS 40 END Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...