Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game.py #2

Open
karkra911 opened this issue Mar 18, 2023 · 0 comments
Open

game.py #2

karkra911 opened this issue Mar 18, 2023 · 0 comments

Comments

@karkra911
Copy link

There are two spaces before the multiplication operator

num = 10
doubled = num * 2

The error in the code is the presence of an extra space before the multiplication operator in the second line:

makefile
Copy code
doubled = num * 2
To fix the error, simply remove the extra space so that the multiplication operator immediately follows the variable "num":

makefile
Copy code
doubled = num * 2
This will ensure that the code performs the intended multiplication operation and assigns the result to the variable "doubled".

The error in the code is the presence of an extra space before the multiplication operator in the second line:

- doubled = num  * 2
+ doubled = num * 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant