Skip to content
← Back to Community
simplest codes wont work
Profile icon
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
Profile icon
sanahishamzz
Comments
hotnewtop
Profile icon
xfinnbar

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

Profile icon
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]

Profile icon
sanahishamzz

guys it worked, thank youuu

Profile icon
QuickV

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

Profile icon
sanahishamzz

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

Profile icon
jihhyuu202

he probably wrote print(1+1) @QuickV

Profile icon
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

Profile icon
QuickV

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

Profile icon
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

Profile icon
QuickV