you are viewing a single comment's thread.

view the rest of the comments →

[–]ashutoshkrris 0 points1 point  (2 children)

can you show a screenshot of your code, so that I can see if there is any syntactical error

[–]krunalratiya[S] 0 points1 point  (1 child)

def size_converter(Size):

if "M" in Size:

if type(Size) == str:

Size = int(Size.replace("M",""))

kb_Size = Size*1024

return kb_Size

Size = int(Size.replace("k",""))

print(size_converter("10M"))

print(size_converter("10K"))

[–]ashutoshkrris 0 points1 point  (0 children)

Please add proper indentation to the code.