File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- #Create a program that reads two values and displays a menu on the screen:
1+ #59- Create a program that reads two values and displays a menu on the screen:
22#[ 1 ] add
33#[ 2 ] multiply
44#[ 3 ] bigger
Original file line number Diff line number Diff line change 1- # Write a program that reads any number and displays its factorial.
1+ #60- Write a program that reads any number and displays its factorial.
22# just in four lines
33'''from math import factorial
44number = int(input('Enter a number:'))
Original file line number Diff line number Diff line change 1- # Redo CHALLENGE 51, reading the first term and the reason of an AP, showing the first 10 terms of the progression
1+ #61- Redo CHALLENGE 51, reading the first term and the reason of an AP, showing the first 10 terms of the progression
22# using the while structure.
33print ("Arithmetic progression generator" )
44print ("-=-" * 20 )
Original file line number Diff line number Diff line change 1- # Improve challenge 61 by asking the user if he wants to show some more terms. The program will exit when he says he
1+ #62- Improve challenge 61 by asking the user if he wants to show some more terms. The program will exit when he says he
22# wants to show 0 terms.
33print ("Arithmetic progression generator" )
44print ("-=-" * 20 )
Original file line number Diff line number Diff line change 1- #Write a program that reads any integer number N and displays on the screen the first N elements of a
1+ #63- Write a program that reads any integer number N and displays on the screen the first N elements of a
22# Fibonacci Sequence.
33terms = int (input ("How many terms do you want to show?" ))
44first_term = 0
Original file line number Diff line number Diff line change 1- #Create a program that reads several integers from the keyboard. The program will only stop when the user enters the
1+ #64- Create a program that reads several integers from the keyboard. The program will only stop when the user enters the
22# value 999, which is the stopping condition. At the end, show how many numbers were entered and what the sum of them
33# was (disregarding the flag).
44number = counter = amount = 0
You can’t perform that action at this time.
0 commit comments