Skip to content

Instantly share code, notes, and snippets.

View freeloki's full-sized avatar
🎯
Focusing

H.Yavuz Erzurumlu freeloki

🎯
Focusing
View GitHub Profile
def print_formatted(number):
# your code goes here
#print("Number is: {}".format(number))
if number >= 1 and number <= 99:
num_str = str(bin(number)).replace("0b", "")
padding_count = len(num_str)
#print("Padding count is: {} ".format(padding_count))
for x in range(1, number + 1, 1):
def split_and_join(line):
# write your code here
a = line.split(" ")
a="-".join(a)
return a