From 1abcf7e620f4955683a08804362ca03773ddd50a Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 29 Mar 2026 02:15:48 +0330 Subject: [PATCH] Correct the order of variables in the formatted string and fix the output of the isdigit() method in Day 4 - Strings of 30 Days of Python challenge --- Persain/04_strings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Persain/04_strings.md b/Persain/04_strings.md index a934b64..c8937c2 100644 --- a/Persain/04_strings.md +++ b/Persain/04_strings.md @@ -359,7 +359,7 @@ last_name = 'Yetayeh' age = 250 job = 'teacher' country = 'Finland' -sentence = 'I am {} {}. I am a {}. I am {} years old. I live in {}.'.format(first_name, last_name, age, job, country) +sentence = 'I am {} {}. I am a {}. I am {} years old. I live in {}.'.format(first_name, last_name, job, age, country) print(sentence) # I am Asabeneh Yetayeh. I am 250 years old. I am a teacher. I live in Finland. radius = 10 @@ -433,7 +433,7 @@ print(challenge.isdecimal()) # False challenge = '123' print(challenge.isdecimal()) # True challenge = '\u00B2' -print(challenge.isdigit()) # False +print(challenge.isdigit()) # True challenge = '12 3' print(challenge.isdecimal()) # False, فاصله مجاز نیست ```