NEW
Font size
Worksheetspython
Total questions: 10
Worksheet time: 3mins
تستخدم مكتبه ....للتعامل مع المصفوفات
scrapy
kaers
beautifulsoup
numpy
يمكن استخدام بايثون علي جميع انظمه التشغيل
خطأ
صح
هذا الكود صحيح ام خطأ
# Assign a value
number = 50
# Check the is more than 50 or not
if (number >= 50):
print("You have passed")
else:
print("You have not passed")
صح
خطأ
هذا الكود يشير الي
def convert(seconds):
seconds = seconds % (24 * 3600)
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60
return "%d:%02d:%02d" % (hour, minutes, seconds)
# Driver program
n = 12345
print(convert(n))
تحويل الساعات الي دقائق
تحويل الثوان الي ساعات
تحويل الساعات الي ثوان
تحويل الثوان الي دقائق
تستخدم مكتبه pandas
لعرض الفيديوهات
لتخزين الصور
لجمع المصفوفات
لتحليل البيانات
هذا الكود يمثل استدعاء مكتبه
# Import the library
import matplotlib.pyplot as plt
# Create two lists of numbers
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]
# Create a line plot
plt.plot(x, y)
# Add labels to the axes
plt.xlabel("x")
plt.ylabel("y")
# Add a title to the plot
plt.title("A simple line plot")
# Display the plot
plt.show()
matplotlib
Keras
Py Torch
Scrapy
من لغات البرمجة تأثيرا بالبايثون كوبرا
خطأ
صح
(raise)تستخدم لتعريف دالة
خطأ
صح
(def) تستخدم لرفع انشاء
صح
خطأ
من مميزات بايثون انها
منخفضة المستوي
مغلقة المصدر
مفتوحه المصدر ومنخضه المستوي
مفتوحه المصدر وعالية المستوي
