برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام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.
Write a program that receives a number from the input and increases the number 2 and prints in the output. This trend continues until the number 0 is not arrived
Write a library program that has the following features: 1- The user can register a new book 2- The user can delete recorded books 3- The user can change the specifications of the books including their name and subject ...
Create a link with the following details by clicking the user link to be directly calling 090000000.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.