برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامlet msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
<!DOCTYPE html> <html lang="fa"> <head> <title>script</title> <style> ol{ width: 100px; border: 2px solid #000000; text-align: center; background-color: azure; padding-top: 5px; padding-bottom: 5px; padding-right: 5px; border-radius: 10px; margin-left: auto; margin-right: auto; margin-top: 20px; } li{ border: 1px solid #000000 ; background-color: antiquewhite; border-radius: 5px; } </style> </head> <body> <ol> <li>سایپا</li> <li>بنز</li> <li>تسلا</li> <li>ولوو</li> </ol> </body> </html>
def li(name): for i in range(len(cars)): print(f'{i+1}- {cars[i]}') cars = ["سایپا","بنز","تسلا","ولوو"] li(cars)
car_brands = ["سایپا", "بنز", "تسلا", "ولوو"] # View List with Items Number print("لیست برندهای خودرو:") for index, brand in enumerate(car_brands, start=1): print(f"{index}. {brand}")
<!DOCTYPE html>
<html dir="rtl">
<body>
<ol>
<li>
سایپا
</li>
<li>
بنز
</li>
<li>
تسلا
</li>
<li>
ولوو
</li>
</ol>
</body>
</html>
cars = ['سایپا', 'بنز', 'تسلا', 'ولوو'] for item in cars: print(f"{cars.index(item) + 1}- {item} ")
cars = ["saipa", "benz", "tesla", "valoo"] for index, car in enumerate(cars, 1): print(f"{index}.{car}")
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head >
</head>
<body>
<ol>
<li>سایپا</li>
<li>بنز</li>
<li>تسلا</li>
<li>ولوو</li>
</ol>
</body>
</html>
Submitting answers is currently unavailable.
We want to open a cow door, we don't know the safety password, but we have the following information: the second -digit safing password is the first number of the first digit, the last 4th of the person in one unit is smaller than their first digit ...
Write a program that receives a sentence from the input and prints the longest and shortest word available in the sentence in the output
Write a program that receives 2 dates in yyyy/mm/dd format and print 2 dates to the output for example Tarikh1: 1401/11/01 tarikh2: 1401/11/05 4 days Tarikh1: 1401/10/01 Tarikh2: 1401/11/05 34 Days
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.