You must be logged in to access this section.
Login/Sign uplet 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 class that receives two numbers and the methods of subtraction, multiplication and division can be called. By calling each method, the necessary calculations are required and the result is returned in
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 third digit, the last 4th of the person in the last one is smaller than their first digit ...
Write a program that receives students' scores and names and prints from the highest to the lowest score, respectively
Define a class of User that has a username, email and password and the following methods. Print: Print username and email in the output IS_Gmail: Check whether the user's email is Gmail and ...
Write a function that receives the bank card number as an entrance and places * for all its digits except the first and last digits and give some example as the example below: ("603711121119900") "60 ... 60 ...
Write a program that receives a text from the user as an input and all the words used in the text, along with the number of repeating them to the user, such as: Input: This is an Example. This is a text ... ...
CSS Code Write to select all spans that are directly inside DIV and change the color of their text to red
You must be logged in to access this section.
Login/Sign up 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.