This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def number_elements(n): | |
print("How many numbers do you want to type in?") | |
n=int(input()) | |
print() | |
return n | |
def append_list(a,b): | |
d=1 | |
while d <= b: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print() | |
print() | |
print("This program is used to calculate de factorial number ") | |
print("of a positive integer") | |
print() | |
validacion=0 | |
while validacion==0: | |
print("Introduce an integer number: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Fun with numbers") | |
print() | |
x=int(input("Introduce un numero ")) | |
y=int(input("Introduce otro numero ")) | |
print() | |
def sum_num(a,b): | |
r=a+b | |
print("La suma de los numeros es ", r) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Sum of numbers, Irving Gutierrez") | |
print() | |
count=0 | |
sus=0 | |
print("We will calculate the sum of integers in the range you provide") | |
print() | |
print("Please give us the lower bound") | |
lower=int(input()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Pick a number, Irving Gutierrez") | |
print() | |
import random | |
x=random.randrange(1,100) | |
counter=0 | |
print("Im thinking of a number between 1 and 100") | |
print("Guess the number: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Temperature converter") | |
print() | |
t=str(input("Will you introduce the temperature in Farenheit or Celsius ")) | |
if len(t)> 7: | |
F=int(input("What is the temperature in farenheit ")) | |
c=5*((F-32)/9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Fun with numbers") | |
print() | |
x=int(input("Introduce un numero ")) | |
y=int(input("Introduce otro numero ")) | |
suma= x+y | |
res= x-y | |
mult= x*y | |
div= int(x/y) |