0
What is the put of this code X="a" X*=3 print x
Can you help me with this question in python
3 Antworten
+ 1
x= "a"
x*=3 #means x = x*3
print(x)
#output "aaa"
#If x value a number, ex =5, then multiplication 5*3=15 output
+ 1
aaa
+ 1
NameError: 'x' is undefined