Skip to content

Instantly share code, notes, and snippets.

View Irvingutierrez's full-sized avatar

Irvingutierrez

View GitHub Profile
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:
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: ")
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)
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())
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: ")
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)
@Irvingutierrez
Irvingutierrez / WSQ03
Last active August 29, 2015 14:20
WSQ03
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)