-4

I am making a game that has a fake loading screen in the beginning. I am trying to make a gradual elipsys that adds a period every second until there are 3 periods. this is the code I put in:

    def intro2():
        print('Loading CapsuleCorp computer'=end)
        time.sleep(1)
        print ('.'=end)
        time.sleep(1)
        print ('.')
        time.sleep(3)
        print ('Welcome to the CapsuleCorp main computer.')
        time.sleep(1)
        print ('Due to new security issues, we have added a new security system.')
        print ('If you are an employee, we teach you these maditoraly.')
        time.sleep(1)
        print ('we wipe your mind as an ex-enployee')

Then, after running, I get this error:

    keyword can't be an expression

and it highlights this:

    print**(**'Loading CapsuleCorp computer'=end)

1 Answers1

0

This will fix it:

print('Loading CapsuleCorp computer=', end)

Based on your additional comment below, you may be looking for this:

print('Loading CapsuleCorp computer', end='')