print("Hello") - Displays the text "Hello" on the screen. The print() function outputs text or other information., input("Press Enter to continue...") - Waits for the user to press Enter before proceeding. The input() function pauses the program until the user provides input., name = input("What is your name? ") - Asks the user for their name and stores the input in the variable name., print(“Hello ‘ + name) - Prints the word hello and the whatever was typed in as the name variable, if name == “Fred”: - Conditional (if statement). , if name != "Fred": - Checks to see if name is NOT Fred, from csinsc import * - imports the modules from CS in Schools to give more options, print(Colour.red + "This is red") - Prints the text in red colour, print(Highlight.yellow + "This is yellow") - Hightlights the text in yellow, print(Colour.reset + "Back to normal") - Resets text colour to default. , sleep(3) - Waits for 3 seconds, before the program continues, CS in Schools - The name of the website we are using , Python - The name of the programming language,
0%
Coding Recap
שתף
שתף
שתף
על ידי
09324879
Secondary
DigTech
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
התאמה
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?