Reputation: 1
i have this baaasic script of f-string inside a function, i want to know why there is no returned result when i run it :
def show_me_ip(ip, mask):
return f"IP: {ip}, mask: {mask}"
show_me_ip('10.1.1.1', 24)
Thank you all for your supports.
Upvotes: 0
Views: 44
Reputation: 1957
def show_me_ip(ip, mask):
return f"IP: {ip}, mask: {mask}"
print(show_me_ip('10.1.1.1', 24))
Upvotes: 1