Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
short if else in python 1

short if else in python

June 13, 2022 by Anurag batra
x = 10 if a > b else 11

Here is what the above code is Doing:
1. It’s checking if a is greater than b.
2. If a is greater than b, it sets x to 10.
3. If a is not greater than b, it sets x to 11.

Categories Python Examples
Post navigation
all frequency offset in pandas
pytesseract.pytesseract.TesseractError: (2, ‘Usage: pytesseract [-l lang] input_file’)
© MyEduKit - 2022 . All Rights Reserved.