Tuple ve List'lerde Eleman Kontrolü


  • Belirli bir eleman listede veya tuple'da var mı diye in keyword'ü ile sorgu yapabilirim.


l = [1,2,3,4]



40 in l


False



2 in l


True



t = (1,2,3,4)


40 in t


False



3 in t


True


Lesson discussion

Swap insights and ask questions about Python Temel

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.