Part 2 | Python Programming | Working with Variables integers, strings, and floats

Publié le: 31 décembre 2022
sur la chaîne: oOSylarTechOo
45
2

This is part 2 of a series of python coding that I am having fun with and want to show others that are interested or stuck.

Code Example:
#variables and variable types
#Integers, Strings, and Floats

#Integers are used for whole numbers
iCount = int(10)

#floats are designed for numbers that are fractions of a whole number
fCount = float(2.5)

#Strings are used for anything that you want to display as a string. You might want to display a number as a string so you can turn an integer into a string using this function.
sName = str("Douglas")

print(iCount)
print(fCount)
print(sName)

Music: Paid subscription with Wondershare Filmora

#python #pythonprogramming #pythontutorial #pythonforbeginners #shorts


Sur cette page du site, vous pouvez voir la vidéo en ligne Part 2 | Python Programming | Working with Variables integers, strings, and floats durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur oOSylarTechOo 31 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 45 fois et il a aimé 2 téléspectateurs. Bon visionnage!