105
106def dumb_property_dict(style):
107 """returns a hash of css attributes"""
108 return dict([(x.strip(), y.strip()) for x, y in [z.split(':', 1) for z in style.split(';') if ':' in z]]);109
110def dumb_css_parser(data):
111 """returns a hash of css selectors, each of which contains a hash of css attributes"""
Semicolons are not needed in Python unless using multiple statements in single line. Use of semi-colons add unnecessary clutter.
for x in range(10):
if input[x]:
i = x - 2;
x = i * i;
print(i);
for x in range(10):
if input[x]:
i = x - 2
x = i * i
print(i)