You are given a valid XML document, and you have to print its score. The score is calculated by the sum of the score of each element. For any element, the score is equal to the number of attributes it ...
So, you want to get better at Python, huh? It’s a popular language, and for good reason. Whether you’re just starting out or trying to level up your skills, finding good places to practice is key.
# print(bool(re.match(r'^[-+]?[0-9]*\.[0-9]+$', input()))) # print(bool(re.search(r'^[+-]?\d{0,}\.\d{1,}$',input()))) print(bool(re.match(r'^[-+]?\d*\.\d+$', input()))) ...