Replaces format with f-strings

This commit is contained in:
Ilan
2020-02-18 18:47:05 +01:00
parent dcc115ca1b
commit 7c31c2408c
6 changed files with 87 additions and 58 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ def count_letters2(obj):
return count_letters(obj.get_words())
def word_multiply(x, word=''):
def word_multiply(x, word=""):
return len(word) * x
@@ -39,8 +39,8 @@ def get_user_id(user):
def hello():
return 'hello'
return "hello"
def result(obj):
print('RESULT HOOK {} : {}'.format(obj.name, obj.result))
print(f"RESULT HOOK {obj.name} : {obj.result()}")