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

Published: 31 December 2022
on channel: 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


On this page of the site you can watch the video online Part 2 | Python Programming | Working with Variables integers, strings, and floats with a duration of hours minute second in good quality, which was uploaded by the user oOSylarTechOo 31 December 2022, share the link with friends and acquaintances, this video has already been watched 45 times on youtube and it was liked by 2 viewers. Enjoy your viewing!