test = "123213 32543543 52354 234 34"
a = test.split().append("sd")
print (a)
The above code will give me a None in output, while the following code will output a list:
test = "123213 32543543 52354 234 34"
a = test.split()
a.append("sd")
print (a)
Can anyone explain it? Thanks.