Self Study : The Complete Python / PostgreSQL Course — Udemy

Walrus Operator

Walrus Operator (Assignment Expression)

“While user input (which should be equal to the input (menu)) not equal to 3 — while code should run”
Must place parenthesis because != has precedence.
user_input returns the value of input(menu)
selection was 1

SYNTAX — INPUT / IF CONDITIONALS

Input

If conditionals

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store