Learn Python Variable Types
Apples = input("Enter the Value of Apples: ")
Oranges = input("Enter the Value of Oranges: ")
print (Apples)
print (Oranges)
#print (Apples + Oranges)
print ("Before typecasting, type of Apples is ", type(Apples))
print ("Before typecasting, type of Oranges is ", type(Oranges))
Apples = int(Apples) #casting from string to integer
Oranges = int(Oranges) #casting from string to integer
print ("After typecasting, type of Apples is ", type(Apples))
print ("After typecasting, type of Oranges is ", type(Oranges))
print (Apples)
print (Oranges)
print ("Total fruits, result is ", Apples + Oranges)
Nesta página do site você pode assistir ao vídeo on-line Learn Python Programming 7 - Variable Types and Type Casting (with Examples) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário TNTeach #NCERT #CBSE #Python 23 Agosto 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 112 vezes e gostou 11 espectadores. Boa visualização!