Python error: keyword can't be an expression. print value -
i making game has fake loading screen in beginning. trying make gradual elipsys adds period every second until there 3 periods. code put in:
def intro2(): print('loading capsulecorp computer'=end) time.sleep(1) print ('.'=end) time.sleep(1) print ('.') time.sleep(3) print ('welcome capsulecorp main computer.') time.sleep(1) print ('due new security issues, have added new security system.') print ('if employee, teach these maditoraly.') time.sleep(1) print ('we wipe mind ex-enployee')
then, after running, error:
keyword can't expression
and highlights this:
print**(**'loading capsulecorp computer'=end)
this fix it:
print('loading capsulecorp computer=', end)
based on additional comment below, may looking this:
print('loading capsulecorp computer', end='')
Comments
Post a Comment