What could be the reason that they disabled the use of walrus here also,
from itertools import *
total = ''
print([total := total + i for i in islice(x := 'ElonMusk.txt', len(x) - 4)])
gives the error described in the title of this post.
have to instead use,
print([total := total + i for i in islice('ElonMusk.txt', len('ElonMusk.txt') - 4)])