+ 1
What is the output of this code
× = "a" × * =3 Print (×)
4 ответов
+ 10
Michael , the code will not run, because there is at leat 1 error in each line:
× = "a" # × is not the character x but the multiplication sign U215, this is not allowed as variable name
× * =3 # same as above, rest should be *= 3
Print (×) # print() has to be in lower case letter, × is not the character x but the multiplication sign U215
Additionally: please do not post the same question multiple times. Thanks!
+ 4
That's 3 lines.
Put them in Playground and try it out 😉
+ 3
Use playground to see the output..
0
Try this:
x = "a"
x *= 3
print(x)
You just added a space betweeen * and =
Syntax errror