Kullanıcıdan girdi almamızı sağlar. input() fonksiyonuyla yapılır. Bir değişkene atayarak girilen değeri yakalayabiliriz. Girilen değerler değişkende “str” veri tipi olarak tutulur ancak veri türü dönüşümünü […]
Gerçek hayattaki sözlükler gibi davranan bir veri tipidir. {} operatörü ile bir değişkene tanımlanarak oluşturulur. Sözlük değerlerine erişmek ve sözlüğe değer eklemek: Sözlükler, listeler gibi […]
Listelere oldukça benzerdir. Farklarından biri ise demetlerin değiştirilemez olmasıdır. () operatörü ile bir değişkene tanımlanarak oluşturulur. Demetin Temel Metodları Index metoduyla içine verdiğimiz elemanın hangi […]
Bazı özellikleriyle stringlere benzerler. Stringler gibi indekslenebilirler, parçalanabilirler ve üzerinde değişiklik yapılabilir ancak stringlerden farklı olarak listeler değiştirilebilir veri tipidir. Liste Oluşturma: [] operatörü ile […]
Stringlerdeki Özel Karakterler \n karakteri: Eğer print() fonksiyonu stringlerde \n ile karşılaşırsa alt satırdan ekrana yazdırma işlemine devam eder. \t karakteri: Eğer print() fonkiyonu stringlerde […]
Şu anlık integer, float ve string dönüşümlerini inceleyeceğiz. type() fonksiyonu Bir değişkenin hangi veri türünden olduğunu söyler. Görüldüğü gibi a değişkeninin int() yani integer olduğunu […]
Adından anlayabileceğimiz üzere karakterlerden oluşan bir veri türüdür. String Oluşturma: Tek, çift ya da üç tırnak ile oluşturulabilir. Bu örnekte “ad” değişkenine bir string tanımladık. […]
Python’da dört işlem, tamsayı bölmesi, kalan bulma, üs ve kök bulma gibi işlemleri yapmak için operatörler vardır. Dört işlemimize ait operatörler: Toplama için “+”,çıkarma için […]
Bu bölümü matematik derslerimizden biliyor sayılırız. Basit bir tanımlama ile, integer için tam sayılar; float için ondalıklı sayılar diyebiliriz. -1, 0, 1, 2, 34, 567 […]
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.