line = 'nobody:*:-2:-2:Unprivileged User:/var/empty:usr/bin/false'
uname, *fields, homedir, sh=line.split(':')
print fields
I was doing studies in Python and I'll deal with the line so, when trying to compile I get the following message
SyntaxError: Missing parentheses in call to 'print'
Why is this happening? I'm using the cookbook.