Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
def factorial(x): if x == 1: return 1 else: return x * factorial(x-1) print(factorial(5))
recursion
0 Votos
4 Respuestas
24th May 2020, 5:39 AM
ANONYMOUS
What is the difference, in JavaScript, between =, == and === ?
javascript
operators
1 Voto
3 Respuestas
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 Votos
5 Respuestas
20th Aug 2017, 2:54 PM
maddila Shankar
please explain ----> if 1 + 1 * 3 == 6: print("Yes") else: print("No")
operator-precedence
python
2 Votos
3 Respuestas
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 Votos
4 Respuestas
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 Voto
4 Respuestas
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 Votos
10 Respuestas
7th Feb 2018, 2:45 AM
kamalesh vra
what is the difference between x == 6 & x = 6
python
variables
0 Votos
3 Respuestas
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 Votos
4 Respuestas
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 Votos
4 Respuestas
3rd Nov 2017, 10:24 AM
Augustinas Lukauskas
What does the % in the line mean - if (x % 2 == 0)
c#
loops
3 Votos
5 Respuestas
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 Voto
3 Respuestas
28th Jun 2017, 2:01 AM
Sandeep Jena
Does == operator in python compares any character with its ascii value?
booleans
1 Voto
2 Respuestas
17th Jan 2018, 2:20 AM
Divyansh
What is the difference between .eql? and == in Ruby ?
operators
ruby
0 Votos
2 Respuestas
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 Voto
4 Respuestas
18th Jan 2022, 6:11 PM
Dreamer
Para los hispanohablantes, preciso ayuda con un ejercicio de JS.
&&
==
javascript
0 Votos
3 Respuestas
16th Feb 2022, 2:54 AM
Agustín Barraza
But isnt num 7 and num == 7 shouldnt the answr be 7
if-statements
python
0 Votos
4 Respuestas
23rd Jan 2017, 9:38 PM
Cameron
Why does the following not work? if letter == ('O' or 'Q'): statement
booleans
if-statements
python
0 Votos
4 Respuestas
28th May 2017, 2:03 PM
Andre Simmons
I don’t understand the difference between == and ===. Also != and !==
javascript
1 Voto
3 Respuestas
13th Feb 2018, 10:02 AM
sally
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 Votos
4 Respuestas
8th Jun 2020, 3:01 PM
Sparsh Kathpal
int x = 1; while(x > 0) { System.out.println(x); if(x == 4) { break; } x++; }
break
java
loop
while
2 Votos
4 Respuestas
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 Votos
4 Respuestas
7th Aug 2022, 8:21 AM
Erkaboev Ilhom Isomjonovich
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 Votos
15 Respuestas
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 Votos
22 Respuestas
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 Voto
2 Respuestas
30th May 2018, 1:28 AM
Jalal Uddin
Why do these two statements show different result?
==
integer
java
operator
6 Votos
1 Respuesta
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 Votos
2 Respuestas
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 Votos
6 Respuestas
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 Votos
2 Respuestas
21st Apr 2020, 11:17 PM
Ready To Learn
[SOLVED]User input equals anything in a tuples?
==
input
python
tuples
4 Votos
4 Respuestas
9th Jul 2018, 5:05 PM
LONGTIE👔
Explain me in Java. How to get array of "76", "88" and a.length == 2 ? (Answer was found)
java
4 Votos
6 Respuestas
11th Jun 2019, 5:49 AM
UraL
Cpp equal operator not working as expected
==
c++
operators
1 Voto
2 Respuestas
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 Votos
1 Respuesta
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 Votos
4 Respuestas
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 Votos
30 Respuestas
29th Jun 2017, 6:46 AM
Walter Mugo
<script> var x = 10; var y = 9; x == y document.write(x); </script>
javascript
operators
2 Votos
2 Respuestas
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 Votos
5 Respuestas
4th Oct 2023, 8:24 AM
SAGIR ISAH
Why not '0' for the expression $num1 = (22 % 3 == 22 > 3); ?
php
0 Votos
3 Respuestas
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 Votos
1 Respuesta
7th Jun 2018, 5:29 AM
Saurav nalla
Will any one tell me what's different between == and === ?
javascript
operators
0 Votos
1 Respuesta
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 Votos
8 Respuestas
29th Jun 2020, 9:19 PM
3.14
list = [1, 2, 3, 4] if (list) % 2 == 0 : print(list[ ]) anyone help?
python
-5 Votos
8 Respuestas
24th Mar 2017, 12:17 PM
Jay Sibley
let mal = ["fever", "headache", "sleepless", "dizi"]; let act = ["fever", "headache", "sleepless"]; if(mal == act){ alert("s
please
0 Votos
4 Respuestas
28th Nov 2024, 11:21 PM
Kumah Kwadwo Roland
print( False == (False or True )). Why is the output of it false?
operator-precedence
python
0 Votos
3 Respuestas
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 Voto
4 Respuestas
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 Votos
7 Respuestas
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 Voto
2 Respuestas
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 Votos
3 Respuestas
16th May 2020, 12:56 AM
𝒱𝑒𝓃𝑜𝓂𝑜𝓊𝓈
Conditional
==
c
conditional
equals
2 Votos
4 Respuestas
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 Votos
6 Respuestas
14th Sep 2017, 9:34 AM
Divya Vishwakarma
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
5
6
7
8
Siguiente >
En tendencia hoy
Does anyone have the solution for this challenge?
2 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
I am beginner,This is will be right code?
1 Votes
Kernel in Jupyter
2 Votes
Solved# Survey data format in coding for data
1 Votes
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
How many days will It takes to completely learn front end
4 Votes
SQL
2 Votes
Solution to solving this bugged problem
2 Votes
JAVA PROGRAMMING
1 Votes