Skip to content
Miuul Alıştırmalar - 1.Hafta
  • AI Chat
  • Code
  • Report
  • x = 8
    type(x)
    y = 3.2
    type(y)
    z = 8j + 18
    type(z)
    a = "Hello World"
    type(a)
    b = True
    type(b)
    c = 23 < 22
    type(c)
    l = [1, 2, 3, 4]
    type(l)
    d= { "Name":"Jake", "Age":28, "Address":"Downtown"}
    type(d)
    t = ("machine learning","data science")
    type(t)
    s = {"Python","Machine Learning","Data Science"}
    type(s)
    text = "The goal is to turn data into information, and information into insight."
    text0 = text.upper()
    text1 = text0.replace(",", "")
    text2 = text1.replace(".", "")
    text3 = text2.split(" ")
    print(text3)
    list = ["D","A","T","A","S","C","I","E","N","C","E"]
    
    print(len(list))
    list = ["D","A","T","A","S","C","I","E","N","C","E"]
    
    new_list = list[:4]
    
    print(new_list)
    list = ["D","A","T","A","S","C","I","E","N","C","E"]
    
    del list[8]
    print(list)
    list = ["D","A","T","A","S","C","I","E","N","C","E"]
    
    list.append("Q")
    print(list)