0
X="a" x*=3 wat is the output
7 Réponses
+ 11
@$Vengat Sure, I just wanted to mark that X != x
Or in a Python syntax: X is not x ;)
+ 9
To be perfectly clear, this would raise an exception, as the variable x is not initialized earlier. Mind that Python is case-sensitive ;)
+ 4
@Kuba Let's assume it has been done earlier
+ 4
Okay.
Python is case sensitive
+ 3
aaa. String*integer = integer repeats of string
+ 2
Try it in the code playground and you will find out :)
x*=3 is equivalent to x=x*3 . And for strings, * is a repetition operator.
0
here in this code ........x="a"
x*=3
print(X)like this so... i guess ..it should be....a3
but i fail code output gives err .......i dont understand whats
the exact output