Try It Yourself
Try It Yourself
1.1 http://python.org/ open this and find something that might intrest me?
1.2 print(hello world), the error would be “hello world” is undefined, we can fix this by adding two
quotes, thus making it print(“hello world”), “hello world” should appear on screen.
famous_person = “top g”
famous_quote = “sword, haha I got sword”
print(famous_person.title() + “ once said, ” + “”” + famous_quote.title() + “””)
name_strip = “ Leo”
name_strip.lstrip()
name_strip = “Leo “
name_strip.rstrip()
name_strip = “Leo “
name_strip.()
#I suppose it should work for left and right
2.8 number 8:
print(3 + 5)
print(2 * 4)
print(16 / 2)
print(10 - 2)
3.1 Names:
3.2 greetings:
guest_list.insert(0, ‘Joe’)
print(guest_list)
guest_list.insert(0, ‘bob’)
guest_list.insert(3, ‘Dingo’)
guest_list.append(‘Ooku Looku’)
3.6