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

Опубликовано: 28 Сентябрь 2024
на канале: 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