Python: Upper, Lower, Capitalize, Title. "Mejorando el Código"

Published: 23 August 2021
on channel: Juanfra Tech Data Mastery
536
18

Siguenos los jueves a las 8:00 en pandtech:
   / @pandtechbytest775  

emoticones python:
https://unicode.org/emoji/charts/full...

####################################
nombre.py

nombre = input("Teclea tu nombre: ")

##Función para convertir a mayúsculas
nombre_M = nombre.upper()

##Función para convertir a minúsculas
nombre_m = nombre.lower()

##Función para convertir a Letra Capital
nombre_LC = nombre.capitalize()

##Función para convertir a título
nombre_t = nombre.title()

print(nombre_M)
print(nombre_m)
print(nombre_LC)
print(nombre_t)
#######################################################

imc.py

print(""" Bienvenido Usuario \U0001F638\U0001F44B
\U0001F310 Este es un programa para calcular el Índice de Masa Corporal (IMC) \U0001F525
Por favor ingresa los datos que se te solicitan: \U0001FA7A""")

nombre = input("Por favor teclea tu nombre: ")
peso = float(input(" Por favor introduce tu peso (Kg): "))
altura = float(input(" Por favor introduce tu altura (metros): "))

imc = peso / altura**2
imc = round (imc , 2)
nombre = nombre.title()

##print(" Tu índice de masa corporal (IMC) es: ", imc)
print(f'{nombre} tu IMC es: {imc}')


On this page of the site you can watch the video online Python: Upper, Lower, Capitalize, Title. "Mejorando el Código" with a duration of hours minute second in good quality, which was uploaded by the user Juanfra Tech Data Mastery 23 August 2021, share the link with friends and acquaintances, this video has already been watched 536 times on youtube and it was liked by 18 viewers. Enjoy your viewing!