+ 6

Why walrus function is not working on Sololearn's Playground?

When sololearn updated its python version from 3.7 to 3.8, this function was working fine, but now it is giving the syntax error. I don't understand why this is happening. Here are some examples: https://code.sololearn.com/cX2GUkWRD7sw/?ref=app https://code.sololearn.com/cRV7wKGXn9fr/?ref=app https://code.sololearn.com/cQjq7ODC2YSJ/?ref=app

9th Feb 2020, 7:26 AM
Divyanshu Singh
Divyanshu Singh - avatar
3 Respuestas
+ 8
import sys print(sys. version) We have 3.7.5 walrus not yet born here
9th Feb 2020, 7:39 AM
Oma Falk
Oma Falk - avatar
9th Feb 2020, 8:04 AM
Mihai Apostol
Mihai Apostol - avatar
9th Feb 2020, 7:32 AM
Divyanshu Singh
Divyanshu Singh - avatar