#جواب محاسبه محیط مستطیل#سطح:آسون#سکه:۱۰تاlength = int(input("Enter the length of the rectangle: "))width = int(input("Enter the width of the rectangle: "))
perimeter = (length + width) * 2print(perimeter)
perimeter = (length + width) * 2print(perimeter)
۲۶۲
۱۷:۴۹
#جواب دسترسی ناپذیر#سطح:آسون#سکه:۱۰تاrole = "admin"password_correct = False
if role.lower() == "admin" or password_correct: message = "Access Granted"else: message = "Access Denied"
print(message)
if role.lower() == "admin" or password_correct: message = "Access Granted"else: message = "Access Denied"
print(message)
۲۶۳
۱۷:۴۹
#جواب کد آباد#سطح:آسون#سکه:۱۰تاtext = input()
codeabadi = text.replace('a', 'aaa')codeabadi = codeabadi.replace('i', 'ii')
print(codeabadi)
codeabadi = text.replace('a', 'aaa')codeabadi = codeabadi.replace('i', 'ii')
print(codeabadi)
۲۶۰
۱۷:۴۹
#جواب رمز ساز#سطح:آسون#سکه:۱۰تاcreated_password = int(input())
if created_password % 3 == 0 and created_password % 5 == 0: valid_password = created_passwordelse: print("Password is not valid.")
if created_password % 3 == 0 and created_password % 5 == 0: valid_password = created_passwordelse: print("Password is not valid.")
۲۵۹
۱۷:۴۹
#جواب مسابقه حواس پرتا#سطح:آسون#سکه:۱۰تاguess = "!??345"guess_length = len(guess)
number_of_punc = guess.count('!')number_of_question = guess.count('?')
correct = guess_length - number_of_punc - number_of_question
final_answer = (correct / guess_length) * 100print(final_answer)
number_of_punc = guess.count('!')number_of_question = guess.count('?')
correct = guess_length - number_of_punc - number_of_question
final_answer = (correct / guess_length) * 100print(final_answer)
۲۶۴
۱۷:۴۹
#جواب محاسبه تعداد روزهای زندگی بر اساس سن#سطح:آسون#سکه:۱۰تاage = int(input("Enter your age: "))
day = age * 365print(day)
day = age * 365print(day)
۲۷۰
۱۷:۴۹
#جواب پیام خوش آمد گویی به کاربر#سطح:آسون#سکه:۱۰تاname = input("Enter your name: ")
welcome_message = "Welcome " + nameprint(welcome_message)
welcome_message = "Welcome " + nameprint(welcome_message)
۲۹۶
۱۷:۵۰
#جواب تبدیل حروف کوچک به بزرگ#سطح:آسون#سکه:۱۰تاstring = input("Enter a string of lowercase letters: ")
upper_string = string.upper()print(upper_string)
upper_string = string.upper()print(upper_string)
۲۹۹
۱۷:۵۰
#جواب پیدا کردن کوچک ترین عدد#سطح:آسون#سکه:۱۰تاx = int(input("Enter the first number: "))y = int(input("Enter the second number: "))z = int(input("Enter the third number: "))
minimum = min(x, y, z)print(minimum)
minimum = min(x, y, z)print(minimum)
۲۹۸
۱۷:۵۰
بقیه جواب چالش های 10نمره ای رو بعدن میزارم فعلا تا اینجا برید اگه نرقتید
۲۹۷
۱۷:۵۱