Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

H.Yavuz Erzurumlu freeloki

🎯
Focusing
View GitHub Profile
View Split_and_Join_Yavuz
def split_and_join(line):
# write your code here
a = line.split(" ")
a="-".join(a)
return a
View String_Formatting_Yavuz.py
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):
You can’t perform that action at this time.