برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام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
person = [ { "name": "amir hosein" , "city": "tehran" , "age": 23 },{ "name": "hooshang" , "city": "tehran" , "age": 48 },{ "name": "leyla" , "city": "arak" , "age": 39 },{ "name": "mehdi" , "city": "qome" , "age": 12 },{ "name": "zahra" , "city": "mazandaran" , "age": 33 },{ "name": "hosein" , "city": "hamedan" , "age": 56 },{ "name": "arman" , "city": "amirkola" , "age": 24 },{ "name": "iman" , "city": "sari" , "age": 38 } ] print(person[0]["name"]) print(person[1]["name"]) print(person[2]["name"])
import pandas as pd # Data data = { 'اسم': ['امیرحسین', 'هوشنگ', 'لیلا', 'مهدی', 'زهرا', 'حسین'], 'شهر': ['تهران', 'تهران', 'اراک', 'قم', 'مازندران', 'همدان'], 'سن': [23, 48, 39, 12, 33, 56] } # Create Dataframe df = pd.DataFrame(data) # Display the table print(df)
names['حسین','زهرا','مهدی','لیلا','هوشنگ','امیرحسین'] city=['همدان','مازندران','قم','اراک','تهران','تهران'] sen=[23,48,39,12,33,56] i=0 while i<len(names): print(names[i],sen[i],city[i],end=' ') i+=1 print('')
name=["امیرحسین","هوشنگ","لیلا","مهدی","زهرا","حسین"] city=["تهران","تهران","اراک","قم","مازندران","همدان"] age=[23,48,39,12,33,56] for i in range(len(name)): print(name[i],city[i],age[i])
<!DOCTYPE html> <html lang="fa"> <head> <title> جدول</title> <style> table{ background-color: bisque; margin-left: auto; margin-right: auto; text-align: center; border: 2px solid #000000; padding: 3px; border-radius: 10px; } td{ background-color: azure; border: 1px solid #000000; padding: 4px; border-radius: 10px; width: 50px; } </style> </head> <body> <table > <tr> <th>name</th> <th>city</th> <th>age</th> </tr> <tr> <td>امیرحسین</td> <td>تهران</td> <td>23</td> </tr> <tr> <td>هوشنگ</td> <td>تهران</td> <td>48</td> </tr> <tr> <td>لیلا</td> <td>اراک</td> <td>39</td> </tr> <tr> <td>مهدی</td> <td>قم</td> <td>12</td> </tr> <tr> <td>زهرا</td> <td>مازندران</td> <td>33</td> </tr> <tr> <td>حسین</td> <td>همدان</td> <td>56</td> </tr> </table> </body> </html>
*.*.*.*.*.*.*.*.* CSS *.*.*.*.*.*.*.*.* <style> body { background: #171b26; } div { width: 90%; background-color: #293143; margin: auto; border-radius: 10px; } table { width: 95%; border-collapse: collapse; margin: 40px auto; } th, td { padding: 5px; text-align: center; border-bottom: 2px solid #232a39; } tr { background: #293143; color: #ffffff; } th { background-color: #293143; color: #fb4b83; } tr:hover { background-color: #343e56; } </style> -_-_-_-_-_-_-_ HTML _-_-_-_-_-_-_-_-_ <div> <table> <tr> <th>سن</th> <th>شهر</th> <th>نام</th> </tr> <tr> <td>23</td> <td>تهران</td> <td>امیرحسین</td> </tr> <tr> <td>48</td> <td>تهران</td> <td>هوشنگ</td> </tr> <tr> <td>39</td> <td>اراک</td> <td>لیلا</td> </tr> <tr> <td>12</td> <td>قم</td> <td>مهدی</td> </tr> <tr> <td>33</td> <td>مازندران</td> <td>زهرا</td> </tr> <tr> <td>56</td> <td>همدان</td> <td>حسین</td> </tr> </table> </div>
humans = [ ("AmirHossine", "tehran", 23), ("Hooshang", "theran", 48), ("lyla", "arak", 39), ("mahdi", "goq", 12), ("zahra", "mazandaran", 33), ("hossine", "hamedane", 56) ] for human in humans: print("They are humans") for h in human: print(h, end=" ")
Submitting answers is currently unavailable.
Write a program that receives the user's name, age and city and print on output
Write a program that receives a number from the input and checks whether the number is segmented to 5. Tips: The numeric is on 5 segments that remain the remaining 5 zero
Design the database of a restaurant and write a query about making tables and keys. Tips: In this restaurant we want to have a list of foods, orders and customers in the system
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 ... ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.