İçeriğe geç

Python 4 – Değişken Tipini Öğrenme

Python programlamada değişken tipini öğrenmek için:

#Değişken tanımlama ve değişken tipini öğrenme

c = 5
print("c nin değeri ve tipi :", c, " - ", type(c))
c = "Armut"
print("c nin değeri ve tipi :", c, " - ", type(c))
c=5.89
print("c nin değeri ve tipi :", c, " - ", type(c))
c=True
print("c nin değeri ve tipi :", c, " - ", type(c))
1.174 Gösterim  
Tarih:Genel

İlk Yorumu Siz Yapın

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.

This site uses Akismet to reduce spam. Learn how your comment data is processed.