- 1

What is the result of this code

X ="a" X *=3 Print (x)

10th Feb 2021, 6:58 PM
Hussaini Kamall
Hussaini Kamall - avatar
4 odpowiedzi
+ 3
"aaa" will be the output. But change the small x to capital x and capital p to small p
10th Feb 2021, 7:09 PM
Atul [Inactive]
+ 3
Execute the code and check the output or are you gonna ask same question for every code !?
10th Feb 2021, 7:08 PM
Abhay
Abhay - avatar
+ 1
Atul, small correction: they do not have to change X to x, but it will be more under Python concepts (objects and functions — start from small letter, user-defined classes — start from capital letter).
10th Feb 2021, 7:25 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 1
Ya it will also work
11th Feb 2021, 5:52 AM
Atul [Inactive]