Skip to content
Introduction tro python
  • AI Chat
  • Code
  • Report
  • Spinner
    x = 5 + 5
    y = "5" + "5"
    print(x)
    print(y)
    x="john"
    y= 5
    print(x)
    print(y)
    mass = 50
    acceleration = 0.1
    force = mass * acceleration
    Pressure = force/Area
    Area = 10
    print(force)
    print(Pressure)
    
    force = 3.59
    Area = 10
    Distance = "5"
    print(type(force))
    print(type(Area))
    print(type(Distance))
    fam = [["Nee", 5.2,], ["Mama", 4.5,],["Ridwan", 6.0,], ["Yemi", 5.8],["Twins", 4.9,], ["Idowu", 4.0]]
    print(fam[-2][1])
    print(type(fam[3][0]))
    
    fam = ["Nee", 5.2, "Mama", 4.5, "Ridwan", 6.0, "Yemi", 5.8, "Twins", 4.9, "Idowu", 4.0]
    
    print(fam[:3])
    print(fam[0:3])
    print(fam[-3])
    print(fam[3:])
    print(fam[-3:])