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

Pubblicato il: 31 dicembre 2022
sul canale di: 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


In questa pagina del sito puoi guardare il video online Part 2 | Python Programming | Working with Variables integers, strings, and floats della durata di ore minuti seconda in buona qualità , che l'utente ha caricato oOSylarTechOo 31 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 45 volte e gli è piaciuto 2 spettatori. Buona visione!