🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

DISCRETE STRUCTURE PROGRAMMING.docx

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

**DISCRETE STRUCTURE PROGRAMMING(PYTHON)** - **Mathematical structures crucial to computing.** - **Sets, graphs, logic, algorithms.** - **Why Discrete Structures Are Important for IT: Develop an understanding of why discrete structures are foundational for areas like cybersecurity,...

**DISCRETE STRUCTURE PROGRAMMING(PYTHON)** - **Mathematical structures crucial to computing.** - **Sets, graphs, logic, algorithms.** - **Why Discrete Structures Are Important for IT: Develop an understanding of why discrete structures are foundational for areas like cybersecurity, database management, and AI.** - **Core Topics: Focus on sets and functions, logic and proofs, graph theory, and combinatorics as they apply to IT.** - **Practical Applications: See how these concepts are applied in algorithm development, cybersecurity, and network design.** **PYTHON** **-Easiest language to understand** **-indention is VERY IMPORTANT** **-Very short syntax** **-no semicolon needed** **IDE(Integrated Development Environment)** **- An application that is used for the convenience of the user's coding experience on a certain proggraming language which provides tools to ease the user's labor.** **PRINT** **-used to DISPLAY something in the console.** **VARIABLES\ -used to store up data for later use.** **IDENTIFIERS** **- The nam of the variablewhich the user decides to choose** **INPUT()** **-used to make user input something in** **the console** **CASTING VARIABLE** **-A technique used to convert a datatype** **to another datatype** **ARITHMETIC OPERATORS** **- Used to perform mathematical** **operations inside our programming language.** ![](media/image2.png) **LIST** **-a READ and WRITE collection of** **variables that may be used to sort a certain data** **READING LISTS ITEMS** **-you can READ a LIST by PRINTING** **one o the ITEMS inside it by using** **INDEX.** ![](media/image4.png) **INDEX** **-the NUMBER of WHERE an ITEM** **is on a COLLECTION.** **READING LISTS RANGE** **-You can READ a lists's RANGE OF ITEMS by specifying a RANGE OF INDEX** ![](media/image6.png)**LIST LENGTH** **-length of the item in the list** **LIST COUNT** **-how many items that has a same value** ![](media/image9.png) **LIST APPEND** **-used to add item at the end of the list** **INSERT** **-add a specified INDEX** ![](media/image11.png) **REMOVE** **-deleting a value (depend on what you choose to delete)** **POP** ![](media/image12.png)**-deletes an item based on their INDEX but if INDEX is not specified it deletes the last item** **DEL** **-del item based on their INDEX but if not specified it deletes the whole list** **CLEARING(CLEAR)** **-deletes all the value in the list** ![](media/image14.png) **COPYING(COPY)** **-copies whole list, can be assigned** **a new list** **COMBINING BY ADDING** **-you can use + to combine lists** ![](media/image16.png) **COMBINING BY EXTEND** **-combine by appending the specified** **list to the end of the list** **REVERSE** ![](media/image18.png)**-reversing the order list** **SORT** **Ascending** **-alphabetical order** **Descending** **-reverse order** **NESTED** ![](media/image20.png)**-a list inside a list alo known as** **sublist** **TUPLES** **-a READ ONLY collection of variables that may be used to sort a certain data** ![](media/image22.png)

Use Quizgecko on...
Browser
Browser