Skip to content

Commit 6bdad42

Browse files
committed
Use f-string in "Writing your own functions" section example
1 parent 9d47899 commit 6bdad42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programming/python/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ The same function modified & printing a log message:
3333

3434
~~~~~ python
3535
def square(num):
36-
print("found the square of {:d}".format(num))
36+
print(f"found the square of {num}")
3737
return num * num
3838
~~~~~

0 commit comments

Comments
 (0)