Posts by Tryford • 41 points
4 posts
-
-1
votes2
answers502
viewsQ: Associating positions with Python elements
Make a program that reads two lists with 10 elements each and calculate another list containing at even positions the values of the first and at odd positions the values of the second. Please help…
-
2
votes1
answer888
viewsQ: The sum of the N first prime numbers
Write a program that reads a non-negative integer and print the sum of the N first prime numbers. I am not able to add the N first prime numbers but add up to the prime number typed. If I type 5 for…
-
-1
votes1
answer312
viewsQ: Stay in Loop until the entered value is negative
Write a program that reads multiple integers until a negative number is typed. The program has to return the smallest and largest number read. I tried to do, but when it comes to show the smallest…
python-3.xasked Tryford 41 -
1
votes1
answer36
viewsQ: Program that calculates a series of N terms
Write a program to calculate the value of the series, for N terms. S = 0 + 1/2! + 2/4! + 3/6! + ... I started to do the program as shown in the code below, but I’m not getting the right result.…
python-3.xasked Tryford 41