Ask coding questions

← Back to all posts
simplest codes wont work
sanahishamzz (0)

so for example i wrote 1 + 1 then i clicked on run but nothing happened, it gave me a blank space, only the print command works but nothing else does

x = 5
y = 6
z = 7
x == 6

(here its supposed to tell me false
but it gives me nothing when i write them)

the codes sometimes work when i write them in the result section and then it works so idk

Comments
hotnewtop
xfinnbar (149)

You need to log them to the console to see them. For example, in Python you would use print(x == 6).

sanahishamzz (0)

OH THANK YOUU it worked but in my first week of using replit it used to work in the files part too, idk why its not working now, thank you so much though [email protected]

sanahishamzz (0)

guys it worked, thank youuu

QuickV (128)

Code doesn't work if you just type 1+1 lol... Coding languages aren't calculators ;).

sanahishamzz (0)

you know what i meant, i meant that the easiest codes dont work @QuickV

jihhyuu202 (15)

he probably wrote print(1+1) @QuickV

QuickV (128)

Yeah I know what you mean... But if the easiest code examples don't work, that means that there's something wrong with the code that you're typing... @sanahishamzz

QuickV (128)

Ah... I thought he/she literally meant "1+1" @jihhyuu202

sanahishamzz (0)

x = 5
y = 6
z = 7
x == z

(gives me blank, and no i shouldnt write print (' x == z ') because it wouldnt give me false it would give me x == z in the result section @QuickV