Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
def factorial(x): if x == 1: return 1 else: return x * factorial(x-1) print(factorial(5))
recursion
0 Votes
4 Answers
24th May 2020, 5:39 AM
ANONYMOUS
What is the difference, in JavaScript, between =, == and === ?
javascript
operators
1 Vote
3 Answers
26th Feb 2016, 2:29 PM
Damar S Briggs
for(int x=10; x<=40; x=x+10) { if(x == 30) { continue; } System.out.println(x); }
java
loops
0 Votes
5 Answers
20th Aug 2017, 2:54 PM
maddila Shankar
please explain ----> if 1 + 1 * 3 == 6: print("Yes") else: print("No")
operator-precedence
python
2 Votes
3 Answers
14th Apr 2020, 2:59 PM
Audie
I DON'T UNDERSTAND HOW THE OUTPUT OF QUESTION 1 ON MULTIDIMENSIONAL ARRAYS == JOHNSON
arrays
help
java
multidimensional
2 Votes
4 Answers
26th Jan 2017, 6:37 PM
Nathaniel Ruffer
How to write the output when the cout statement has == eg.cout<< ans==8
c++
variables
1 Vote
4 Answers
25th Oct 2016, 5:55 AM
Diksha Gautam
Consider the following function fdef f(m): if m == 0: return(1) else: return(m*f(m-1)) Which of the following is correct?
python
0 Votes
10 Answers
7th Feb 2018, 2:45 AM
kamalesh vra
what is the difference between x == 6 & x = 6
python
variables
0 Votes
3 Answers
2nd Feb 2017, 8:38 AM
Llewellyn Kay
If i put user == 'Q' only in the if block !! then it loops and works but if i write user == 'Q' or 'q' then it fails why??
python
python3
0 Votes
4 Answers
19th May 2020, 2:44 PM
Lucky Nayak
Why x == y, but x !== y in this script? JavaScript, DOM
dom
identical
javascript
js
variables
0 Votes
4 Answers
3rd Nov 2017, 10:24 AM
Augustinas Lukauskas
What does the % in the line mean - if (x % 2 == 0)
c#
loops
3 Votes
5 Answers
28th Apr 2017, 11:07 AM
Leo
Public class Exceptions {public static void main(String[] args) {try {if (args.length == 0) return;System.out.println(args[0]);}
java
1 Vote
3 Answers
28th Jun 2017, 2:01 AM
Sandeep Jena
Does == operator in python compares any character with its ascii value?
booleans
1 Vote
2 Answers
17th Jan 2018, 2:20 AM
Divyansh
What is the difference between .eql? and == in Ruby ?
operators
ruby
0 Votes
2 Answers
20th Apr 2017, 4:41 AM
Ruby
Can someone please explain how the if block works without using == inside a loop ?
basics
c
doubt
ifblock
new
1 Vote
4 Answers
18th Jan 2022, 6:11 PM
Dreamer
But isnt num 7 and num == 7 shouldnt the answr be 7
if-statements
python
0 Votes
4 Answers
23rd Jan 2017, 9:38 PM
Cameron
Why does the following not work? if letter == ('O' or 'Q'): statement
booleans
if-statements
python
0 Votes
4 Answers
28th May 2017, 2:03 PM
Andre Simmons
Para los hispanohablantes, preciso ayuda con un ejercicio de JS.
&&
==
javascript
0 Votes
3 Answers
16th Feb 2022, 2:54 AM
Agustín Barraza
I don’t understand the difference between == and ===. Also != and !==
javascript
1 Vote
3 Answers
13th Feb 2018, 10:02 AM
sally
int x = 1; while(x > 0) { System.out.println(x); if(x == 4) { break; } x++; }
break
java
loop
while
2 Votes
4 Answers
5th Nov 2019, 3:23 AM
Minhaj Haider
int num = 1; while(num<=20){ if (num % 3 == 0){ cout<<num<<endl; } num+=1; }
while
0 Votes
4 Answers
7th Aug 2022, 8:21 AM
Erkaboev Ilhom Isomjonovich
When we use double equal operator "==" for comparing two objects it will compare their addresses or hascodes generated by JVM?
==
double_equal_operator
java
0 Votes
4 Answers
8th Jun 2020, 3:01 PM
Sparsh Kathpal
What is wrong with this code please:n = 100 i = 1 while i <= n: if i % 2 == 0: continue print(i) i+=1
christian
huml
2 Votes
15 Answers
13th Mar 2022, 1:56 PM
Lean R1
var sum=0; for(i=4; i<8; i++) { if (i == 6) { continue; } sum += i; } document.write(sum); the output is 16.... can a
javascript
loops
3 Votes
22 Answers
12th Oct 2016, 11:43 AM
Shabana.A
null == undefined , null === undefined, which one will return true in JavaScript ?
html
html5
javascript
json
node.js
1 Vote
2 Answers
30th May 2018, 1:28 AM
Jalal Uddin
Why do these two statements show different result?
==
integer
java
operator
6 Votes
1 Answer
13th Jan 2020, 1:01 AM
Jobelle
print('Hello world!') x = 1 while x < 10: if x%2 == 0: print(str(x) + " is even") else: print(str(x) + " is odd")
control
flow
0 Votes
2 Answers
3rd May 2021, 9:16 AM
Faiq Ali
Equality using == for Java string object. Why str1==str2 is true, while str1==str4 is false in my code.
==
equality
pool
string
2 Votes
6 Answers
5th Aug 2023, 2:06 AM
Oliver Pasaribu
JS how can I ‘continue’ array of items, if i == the array....
array
continue
for
i
if
javascript
loop
numbers
simple_way
0 Votes
2 Answers
21st Apr 2020, 11:17 PM
Ready To Learn
Explain me in Java. How to get array of "76", "88" and a.length == 2 ? (Answer was found)
java
4 Votes
6 Answers
11th Jun 2019, 5:49 AM
UraL
[SOLVED]User input equals anything in a tuples?
==
input
python
tuples
4 Votes
4 Answers
9th Jul 2018, 5:05 PM
LONGTIE👔
Cpp equal operator not working as expected
==
c++
operators
1 Vote
2 Answers
25th Sep 2018, 10:26 AM
CodeMStr
elif user_input == "add": num1 = float(input("Enter a number: ")) num2 = float(input("Enter another number: "))
calculator
simple
4 Votes
1 Answer
14th Apr 2018, 3:31 PM
Andrew Watts
for n in range(2,10): for x in range(2,n): if n%x == 0: print(n,'is',x,'*',n//x) please interpret this
functions
0 Votes
4 Answers
30th Dec 2019, 4:13 PM
Desmond
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
arrays
java
6 Votes
30 Answers
29th Jun 2017, 6:46 AM
Walter Mugo
<script> var x = 10; var y = 9; x == y document.write(x); </script>
javascript
operators
2 Votes
2 Answers
28th Dec 2016, 10:40 PM
Idowu Shogbon
Please someone should help me, why do i get syntax error in line 17 (elif comand == help)
python3
0 Votes
5 Answers
4th Oct 2023, 8:24 AM
SAGIR ISAH
Why not '0' for the expression $num1 = (22 % 3 == 22 > 3); ?
php
0 Votes
3 Answers
7th Jun 2021, 12:56 PM
Wah Wah Shwe(와와쵀)
def even(x): if x%2 == 0: print ("Yes") _____ print("No")? should be
functions
python
-4 Votes
1 Answer
7th Jun 2018, 5:29 AM
Saurav nalla
Will any one tell me what's different between == and === ?
javascript
operators
0 Votes
1 Answer
10th Nov 2016, 3:12 PM
Namas Thapa
how to represent any whole number in python? Say if x == any whole number print(x)? How to represent this?
python
2 Votes
8 Answers
29th Jun 2020, 9:19 PM
3.14
list = [1, 2, 3, 4] if (list) % 2 == 0 : print(list[ ]) anyone help?
python
-5 Votes
8 Answers
24th Mar 2017, 12:17 PM
Jay Sibley
print( False == (False or True )). Why is the output of it false?
operator-precedence
python
0 Votes
3 Answers
17th Dec 2016, 4:22 PM
Tarami Nishan
public class IfClass { public static void main(String[] args) { int noOfPetals = 5; if (noOfPetals % 2 ==
java
1 Vote
4 Answers
24th Jul 2020, 4:54 AM
Gautam Patel
x = 1 while x < 10: if x%2 == 0: print(str(x) + " is even") else: print(str(x) + " is odd") elif:
help
3 Votes
7 Answers
12th Aug 2020, 2:27 AM
Hacker Tamil Tamila
float(9**x) == 9**x = True , if x <= 16 but False if x> 16 why?
python3
type-conversion
1 Vote
2 Answers
18th Dec 2019, 5:05 PM
Ankur Singh Oli
#include <stdio.h> void main() { float x = 0.1; if (x == 0.1) printf("Sanfoundry"); else printf("Advanced C Classes"); }
c
c++
2 Votes
3 Answers
16th May 2020, 12:56 AM
𝒱𝑒𝓃𝑜𝓂𝑜𝓊𝓈
Conditional
==
c
conditional
equals
2 Votes
4 Answers
26th Mar 2019, 11:43 AM
Sergiy L 🇺🇦
String s1 = new String ("Hi"); String s2 = new String("Hi"); Why s1 == s2 returns false ??
java
0 Votes
6 Answers
14th Sep 2017, 9:34 AM
Divya Vishwakarma
I cant under stand when do i use equals() and when do i use == in java
comparing
java
0 Votes
5 Answers
21st Jun 2017, 6:46 PM
Ishaq Za'rour
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
5
6
7
8
Next >
Hot today
Someone can help me
2 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
1 Votes
X velocity
0 Votes
I am a super beginner
0 Votes
Files not linking in C++
0 Votes
Web Dev
0 Votes
Img & web server or personal info
0 Votes
I want to make a triangle area calculator ,anybody can teach me
1 Votes
How this program executes?
0 Votes