This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Baba: | |
def __init__(self, isim_baba): | |
self.isim_baba = isim_baba | |
def babaName(self): | |
print(self.isim_baba) | |
class Anne: | |
def __init__(self, isim_anne): | |
self.isim_anne = isim_anne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var priceList : Set<String> = ["dolar","turkish lira","sterlin"] | |
print(priceList) | |
// Set Add Element | |
priceList.insert("euro") | |
print(priceList) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var values: [Int] = [0, 1, 2, 3] | |
print(values) | |
print("Values count : \(values.count)") | |
// print(values[9]) index out of range | |
// [0, 1, 2, 3] | |
// Values count : 4 | |
//Empty Array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var number = 0 | |
let userBirthday = "17–05–1990" | |
userBirthday = "05–05–2022" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val Byte:Byte = 2 | |
val short:Short = 3566 | |
val int:Int = 655_546 | |
val long:Long = 8449_6664_6115_9987 | |
val long3:Long = 8449L | |
val Byte2 = 2 // Int | |
val short2 = 3566 // Int | |
val int2 = 655_546 //Int | |
val long2 = 8449L // Long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Byte | 8 bit | -128 (-2^7) | 127 (2^7 - 1) | |
Short | 16 bit | -32768 (-2^15) | 32767 (2^15 - 1) | |
Int | 32 bit | -2,147,483,648 (-2^31) | 2,147,483,647 (2^31 - 1) | |
Long | 64 bit | -9,223,372,036,854,775,808 (-2^63) | 9,223,372,036,854,775,807 (2^63 - 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/background" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="300dp" |