R
R
Ruslan Mordovanech2021-12-15 13:44:09
Python
Ruslan Mordovanech, 2021-12-15 13:44:09

How do I replace := Python 3.7 doesn't support it?

(l:=l.decode('utf-8').startswith( ' '))
Python version 3.7 does not support assignment expressions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-15
@Hery1

Move the assignment to a separate line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question