print("hello "+" world!")
2**8
2+3*4
2+3+4*10
(10+2)*3
2.0
2.18
"hello"
"hello" + ' world'
# comment
[1, 2, 3] + [4, 5, 6]
[1, "hello", [2, 3, 4], 4.5]
cities = {
"UK" : "London",
"France" : "Paris",
"Israel" : "Jerusalem"
}
cities
cities.items()
cities.keys()
cities.values()
proxies = {
"proxy1" : ["192.168.100.1", "192.168.100.2", "192.168.100.3"],
"proxy2" : ["192.168.101.1", "192.168.101.2", "192.168.101.3"],
}
proxies
x=10
type(x)
x="hello"
type(x)
x
y = x.upper()
y
type(y)
the_upper_function = x.upper
the_upper_function
type(the_upper_function)
the_upper_function()
type(x)
str
str.upper
another_name_for_str = str
xxx = str("blah")
type(xxx)
xxx + "hello"
xxx
another_name_for_str("blah")
str = 10
str("blah")
str = another_name_for_str
str("blah")
dir("blah")
dir(the_upper_function)
print(help(str.upper)
type(str.upper)
print(help("blah".upper()))
type("blah".upper())
dir
help
type