Which keyword is used to define a function in Python., For, IF, def, What is the output of this program?, 12, 7, 9, What is the output of this program?, 5, 10, 2, What is a function in Python?, A type of error, A reusable block of code that performs a task, A type of variable, A comment, What will this program output?, 5, 10, 15, 510, Why are functions useful?, They make programs longer, They prevent us from using variables, They help organise code and avoid repeating code, They only work with numbers, What does int( ) do in this line?, Prints the number, Converts the input into an integer, Creates a function, Adds two numbers, What does the # symbol mean in Python?, Start of a function, Start of a loop, A comment, A calculation, What does Python do with a comment?, Executes it as code, Ignores it when running the program, Converts it into an integer, Prints it automatically, Which is the correct order when using a function?, Print → Define → Call, Call → Define → Return, Define the function → Call the function → Use/print the result, Return → Define → Input
0%
Functions in Python
שתף
שתף
על ידי
Msayshayesha
صف 8
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?