+ 3

Hi everyone,How do i assign a value into a viriable ,when i type print(x=7) it says x not defined

>>> x=7 >>>print(x) 7 This is the output it must produce above

2nd Jul 2019, 2:11 PM
Vusumuzi Mabena
Vusumuzi Mabena - avatar
5 odpowiedzi
+ 3
@Jonan cruff thanks alot bro,i see where was my mistake,i got it right now.God bless
2nd Jul 2019, 2:23 PM
Vusumuzi Mabena
Vusumuzi Mabena - avatar
+ 3
@Jonan cruff thanks alot bro,i see where was my mistake,i got it right now.God bless
2nd Jul 2019, 2:24 PM
Vusumuzi Mabena
Vusumuzi Mabena - avatar
0
Use "int x;" first.
7th Jul 2019, 11:47 PM
Rob Alderden
0
Very easy. var x = 7 alert (7)
11th Jul 2019, 11:18 PM
momo
momo - avatar