Está en la página 1de 1

Calculadora d epropinas con entradas

x= int(input("Ingrese costo del almuerzo :"))


y= float((input(" Desea agregar un 15 o 18% ? : ")))/100
x+=x*y
x+=x*0.0675
print("El valor total es de " + str(x) + "Pesos")

AREA DE CICULO
r=float(input("Ingrese un radio : "))
pi = 3.1416
A= pi*r**2
print (" El area total del circulo es %s " %(A))

IMPRIMIR NOMBRES REVERSEDADOS (SHEILA = ALIEHS


name = input("Ingrese su 1er nombre y 1er apellido : ")
reversed= ''.join(reversed(name))
print(" Su nombre al reverso es %s " %(reversed) )

IMPRIMIR NOMBRES CON POSICIONES CAMBIADAS (SAUL ESPINO = ESPINO SAUL ) CON ESPACIO
name = input("Ingrese su 1er nombre : " )
Last_name = input("Ingrese su 1er apellido : ")
print(Last_name + " " + name )

Write a Python program which accepts a sequence of comma-separated numbers from


user and generate a list and a tuple with those numbers

x= input("Ingrese lista de numeros separados por coma : ")


lista = x.split(',')
print(lista)
print(tuple(lista))

Write a Python program to accept a filename from the user and print the extension
of that

File_name = input("Ingrese nombre de archivo : ")


x= File_name.split('.')
x=x.pop()
print(x)

También podría gustarte