See ALT text.
Code injection See SQL injection.
def f():
x1 = 0
x2 = 1
def get_next_number():
nonlocal x1, x2
x3 = x1 + x2
x1, x2 = x2, x3
return x3
return get_next_number
What does the above function do?
See Closures.
https://pollev.com/slade You may also download the app to your phone. Use the "slade" poll id.
Here's a Shakespearean sonnet about SQL: **Upon the Noble Art of SQL** When data lies in tables, row by row, And chaos threatens information's realm, Then SQL doth rise, with syntax pure and slow, To guide the querying mind and overwhelm. With SELECT's grace, it plucks the needed field, FROM tables vast as oceans, deep and wide, While WHERE conditions make the dataset yield Only the truths that match what we decide. JOIN bridges gaps 'tween tables once apart, And GROUP BY gathers like with kindred like, While ORDER BY doth sort with subtle art The results that our discerning minds do strike. Thus SQL, though cryptic to the untrained eye, Makes sense of data ere it passes by.This sonnet follows the traditional Shakespearean form with 14 lines, three quatrains and a closing couplet, written in iambic pentameter with an ABAB CDCD EFEF GG rhyme scheme. It celebrates SQL's power to bring order to data chaos while maintaining the elevated, slightly archaic language typical of Shakespeare's sonnets.
Statistics:
Minimum: 27.0
Maximum: 60.0
Mean: 47.49
Median: 48.9
Standard Deviation: 7.62
Your final exam grade can replace your lower midterm grade.
Tuesday, November 18, 2025
4:00 PM - 5:00 PM
Sloane Physics Laboratory (SPL 59)
Concept-based Generic Programming
Abstract: This talk presents programming techniques to illustrate the facilities and principles of C++ generic programming using concepts. Concepts are C++’s way to express constraints on generic code. As an initial example, it provides a simple type system that eliminate narrowing conversions and provides range checking without unnecessary notational or run-time overheads.
Concepts are used throughout to provide user-defined extensions to the type system. The aim is to show their utility and the fundamental ideas behind them, rather than to provide a detailed or complete explanation of C++’s language support for generic programming or the extensive support provided by the standard library.
The final sections briefly present design rationales and origins for key parts of the concept design, including uniform treatment of types, use patterns, the relationship to Object-Oriented Programming, value arguments, notation, concept type-matching, definition checking and static reflection (a C++26 improvements in the support of general programming).
Bio: Bjarne Stroustrup is the designer and original implementer of C++ as well as the author of The C++ Programming Language (4th Edition), A Tour of C++ (3rd edition), Programming: Principles and Practice using C++ (3rd Edition), and many popular and academic publications. Dr. Stroustrup is a professor at Columbia University in New York City. He is a member of the US National Academy of Engineering, and an IEEE, ACM, and CHM fellow. He received the 2018 Charles Stark Draper Prize, the IEEE Computer Society's 2018 Computer Pioneer Award, and the 2017 IET Faraday Medal. His research interests include distributed systems, design, programming techniques, software development tools, and programming languages. He is actively involved in the ISO standardization of C++. He holds a masters in Mathematics from Aarhus University, where he is an honorary professor, and a PhD in Computer Science from Cambridge University, where he is an honorary fellow of Churchill College.
Website: www.Stroustrup.com
SQL notebook Lesson 17.
hw6 review.
See hw7hints.py You may need to install the module: wordsegment.
pip install wordsegment