Python中的多个if语句在单个if语句中

alw*_*btc 1 python if-statement

如何在单个if语句中编写以下内容:

if x != 5:
    if y < 4:
        statement
Run Code Online (Sandbox Code Playgroud)

g.d*_*d.c 10

if x != 5 and y < 4:
  statement
Run Code Online (Sandbox Code Playgroud)