Take the First Step to Artificial Intelligence with the Best! | Certified Introduction to AI, Robotics and Data course is now Free

Join Global AI Hub Now!

x

Home Forums Forum: Python’a Giriş append Reply To: append

  • Vusal

    Member
    May 25, 2021 at 7:42 pm

    Elif merhaba,

    Eger ki birden fazla datayi listeye eklemek istyiorsan, o zaman .append() fonksiyonunu degil, .extend() fonksiyonunu kullanman daha mantikli olur. Mesela:

    custom_list = [1,2,3]

    custom_list.extend(("course", "course"))

    print(custom_list)

    • This reply was modified 6 months, 1 week ago by  Vusal.