Ask coding questions

← Back to all posts
simplest codes wont work
sanahishamzz

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

Voters
sanahishamzz
Comments
hotnewtop
sanahishamzz

guys it worked, thank youuu

QuickV

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

sanahishamzz

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

jihhyuu202

he probably wrote print(1+1) @QuickV

QuickV

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

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

sanahishamzz

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

QuickV
xfinnbar

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

sanahishamzz

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]