While Loop - Lets us repeat code as long as something is true., Condition - It is code that you put inside an if statement or while-loop., Infinite Loop - A loop that has no way of stopping, and will keep looping forever., Loop - A way to repeat code in your program., For Loop - Lets us repeat code a fixed number of times., Break - Exits the current loop and resumes execution at the next statement., Continue - Rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop to continue to the next iteration. Can be used in both while and for loops., NestedCtrlStructures - It is possible to combine more than one of Python's control structures to create more complex programs with various conditions. For example, combining iteration tools like a for loop with conditional statements inside the for loop., Control Structure - Lets us change the flow of the code., Function body - In Python functions, the function __________ is the indented block of code that comes after the def my_function(): line. The function __________ is what will be executed when the function is called., Local variable - A variable that is restricted to use in a certain scope of a program., Global variable - A variable that can be used throughout a program, in every scope., Function - It is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand., Parameters - Pieces of information you can give to functions when you define them., Return - Exit a function and return a value, Exceptions - Runtime errors in a program. by default, they stop the program., Try and Except - Programming constructs that can be used to gracefully handle exceptions so that a program can continue in spite of them.,
0%
Prog 1 ~ Python: Functions & Exceptions and Looping
Μοιραστείτε
Μοιραστείτε
Μοιραστείτε
από
Sfairfield
Επεξεργασία περιεχομένου
Εκτύπωση
Ενσωμάτωση
Περισσότερα
Αναθέσεις
Κατάταξη
Εμφάνιση περισσότερων
Εμφάνιση λιγότερων
Ο πίνακας κατάταξης είναι ιδιωτικός. Κάντε κλικ στην επιλογή
Μοιραστείτε
για να τον δημοσιοποιήσετε.
Ο πίνακας κατάταξης έχει απενεργοποιηθεί από τον κάτοχό του.
Ο πίνακας κατάταξης είναι απενεργοποιημένος, καθώς οι επιλογές σας είναι διαφορετικές από τον κάτοχό του.
Επαναφορά επιλογών
Σταυρόλεξο
είναι ένα ανοικτό πρότυπο. Δεν δημιουργεί βαθμολογίες πίνακα κατάταξης.
Απαιτείται σύνδεση
Οπτικό στυλ
Γραμματοσειρές
Απαιτείται συνδρομή
Επιλογές
Αλλαγή προτύπου
Εμφάνιση όλων
Θα εμφανιστούν περισσότερες μορφές καθώς παίζετε τη δραστηριότητα.
Ανοιχτά αποτελέσματα
Αντιγραφή συνδέσμου
Κωδικός QR
Διαγραφή
Επαναφορά αυτόματα αποθηκευμένου:
;