New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why does this operation equal true even though it should have no output because its false because true + false = false?
c++
operators
0 Votes
3 Answers
2nd Dec 2016, 4:57 AM
Talkiestcobra6
Who is the true owner of panda project?
html5
0 Votes
1 Answer
28th Nov 2016, 11:45 PM
R P
Username and password. Can't get the true false thing in this code to behave correctly.
c++
0 Votes
4 Answers
18th Nov 2016, 3:28 PM
Ove Sletta
Is true that php 7 is faster and better performance than php 5?
php
0 Votes
4 Answers
16th Nov 2016, 11:58 PM
Arya Wicaksana
How do I make the statement true in 4 of lists? Any ideas?
lists
python
0 Votes
2 Answers
13th Nov 2016, 5:34 PM
Brandon
I don't get the "while True: print("i dont get it")" please explain
false
python
true
while
0 Votes
3 Answers
9th Nov 2016, 4:13 PM
La Raine Salazar
whan can do write a operator same "or", but just any of two operant must be true ?
c#
3 Votes
2 Answers
5th Nov 2016, 7:13 AM
Томошов Максим
whan can do write a operator same "or", but just any of two operant must be true ?
c#
operators
1 Vote
5 Answers
4th Nov 2016, 11:13 PM
KiynL
What does while true does?
loops
python
0 Votes
2 Answers
2nd Nov 2016, 9:07 AM
Mala Pokharel
which of the following statement is true - p1 is an object of person type / p1 is an instance of object person
javascript
objects
0 Votes
1 Answer
28th Oct 2016, 12:40 PM
Vinu Mon
why are these true 1."a">"A" 2."a">"1"
booleans
python
0 Votes
2 Answers
27th Oct 2016, 5:42 PM
bibu siva
Return True if the given string contains an appearance of "xyz" where the xyz is not directly preceeded by a period(.). So "xxyz" is True but "x.xyz" is False.
codingbat.com
python
0 Votes
7 Answers
25th Oct 2016, 3:26 PM
Kelvin
why is the answer true ?
boolean-logic
python
0 Votes
5 Answers
20th Oct 2016, 12:20 PM
tobi
def my_func(n,i,c): if i==0: if c==2: return True else: return False if n%i==0: c=c+1 return n,i-1,c n=int(input()) ans=my_func(n,n,0) if ans==True: print ("prime") else: print('not prime')
python
recursion
0 Votes
1 Answer
19th Oct 2016, 2:14 PM
khateeb anwer
How to get a boolean true or false to display a value
java
0 Votes
2 Answers
19th Oct 2016, 2:10 AM
Dan Roszhart
when I wrote int x; cin>>x; if(10<x>15) it is always false 10<x<15 always true 10>x<15 always true 10>x>15 always false 3<x<0 always false 3>x>0 true for x less than 3 can anyone explain why this is happening????
c++
2 Votes
3 Answers
13th Oct 2016, 1:44 PM
Soutik
Where I can find true answers of play match?
c++
0 Votes
3 Answers
11th Oct 2016, 9:16 PM
Янча наступны
why false ==false or true is true can someone explains to me please 😔
operator-precedence
python
1 Vote
3 Answers
5th Oct 2016, 6:21 AM
amir mahir
why when i put false in the program, it outputs error?
constants
false
php
true
0 Votes
4 Answers
3rd Oct 2016, 8:48 AM
Andreea Deleu
println mean type & go to the next line !! true
java
methods
0 Votes
4 Answers
21st Sep 2016, 11:17 PM
eschouf sidali
>>> def even(X): ... if X % 2 == 0 : return True ... else: return False ... >>> filter(even, [0,1,2,3,4,5,6]) [0,2,4,6] How to get that output, help please...
python
0 Votes
3 Answers
14th Sep 2016, 11:07 PM
Vinh Le
In if statement 7==7 also true then that value also be printed... But it accepts only the first value.. Its wrong
if-statements
python
5 Votes
6 Answers
13th Sep 2016, 5:41 PM
Vishnu Kumar P.S.
Please fill in the data types of the data shown below in the comments field: 12 // number "some text" // true //???
javascript
-6 Votes
16 Answers
13th Sep 2016, 1:56 PM
Arbey Jamili
what the difference between used true and false ????
constants
php
1 Vote
8 Answers
9th Sep 2016, 7:18 AM
Raneem Mohamad
3==6 =>0 then 1*0 = 0 and then 1+0 =1 then it is true then why CODE WORKED FOR ELSE?
operator-precedence
python
1 Vote
1 Answer
4th Sep 2016, 1:05 PM
Shyam Sundar
pls what is the result of this code if not true print("1") elif not(1+1==3): print("2") else print("3")
boolean-logic
python
3 Votes
7 Answers
2nd Sep 2016, 4:59 PM
anthony
state true or false a line in a program may have more than one statement.
c#
0 Votes
4 Answers
21st Aug 2016, 9:13 AM
Nation Chakma
1 == True
dictionaries
python
2 Votes
2 Answers
19th Aug 2016, 2:08 AM
Taylor Street
How does >>> print( 'True' < "true") evaluate to result as True in Python? does Python consider the ASCII value for comparison?
booleans
python
3 Votes
2 Answers
16th Aug 2016, 12:41 AM
Sundaresen Bhalasubramanean
Wat is the use of while : True ?
python
0 Votes
5 Answers
13th Aug 2016, 12:58 PM
Harish Krishna
View creates a new table from existing table. Is it true or false? Why?
sql
views
2 Votes
3 Answers
5th Aug 2016, 3:11 AM
Anand Nain
True or true and false --- what will be the answer which will it process first
operator-precedence
python
2 Votes
2 Answers
29th Jul 2016, 3:13 AM
nikitha gireddy
why the below statement is not True ?
operator-precedence
python
1 Vote
6 Answers
28th Jul 2016, 4:50 PM
me3
How can one write a program that will display its boolean value as true wen compiled?
c++
data-types
0 Votes
1 Answer
27th Jul 2016, 12:44 AM
Leo Smile
Is that true oracal is going to stop java in the upcoming time. As per online resources. Shall I learn java then?
java
jdk
0 Votes
4 Answers
20th Jul 2016, 3:23 AM
RUDRABHA MUKHERJEE
Is that true oracal is going to stop java in the upcoming time. As per online resources. Shall I learn java then?
java
0 Votes
1 Answer
20th Jul 2016, 3:21 AM
RUDRABHA MUKHERJEE
python feels just like c++ but easier is it true they are similar?
c++
data-types
python
1 Vote
3 Answers
10th Jul 2016, 3:21 AM
AsianZomb SKO
how to set the textbox of html readonly to true using python?
html5
python
0 Votes
8 Answers
8th Jul 2016, 4:32 AM
swapnil Singh
can i declare a boolean variable with the abbreviation T or F value (this letters equivalent to True or False)?
booleans
java
0 Votes
4 Answers
5th Jul 2016, 5:10 PM
Federico Rodriguez Hormaechea
What is the output of the following? print ( '11' .isnumeric()) a) True b) False c) None d) error
python
1 Vote
7 Answers
4th Jul 2016, 10:49 AM
shekhar
it only prints the true condition 7>5 true 7>8 false what would happen if both of them were true?
if-statements
python
0 Votes
3 Answers
30th Jun 2016, 2:55 AM
pragati das
In the simple calculator, in the given example 1st line: While true: True here is not defined.... Will it work if we only use while rather than while true??
calculator
python
2 Votes
2 Answers
26th Jun 2016, 12:54 PM
Kanishk Gangwar
Please tell me, Is it true that java is better than c++ in some aspects...?
c++
0 Votes
1 Answer
19th Jun 2016, 2:34 PM
sonu
Why this code "False==False or True" is true but "False==(True or False) is not true?
operator-precedence
python
12 Votes
13 Answers
13th Apr 2016, 9:41 PM
Real Coder
How come srand() produces same sequence using the same interger? Shouldn't srand change the sequence as true random?
c++
rand
0 Votes
3 Answers
9th Apr 2016, 9:56 PM
Michael A. Valverde
What's the true purpose of generators? Why not use lists and range function instead?
generators
python
0 Votes
2 Answers
15th Feb 2016, 10:28 AM
Diego Chinellato
Can the Boolean values, True and False, be represented by 1 and 0 respectively?
booleans
python
-1 Vote
3 Answers
25th Jan 2016, 10:46 AM
Kostas Lifeboy
Can someone body tell my what is the difference between false and true constant?
constants
php
2 Votes
8 Answers
26th Dec 2015, 5:04 AM
Mohammed
True & False are case sensitive. Must be capital T & F. is this correct?
booleans
python
2 Votes
3 Answers
23rd Dec 2015, 3:15 AM
Melvin Khoo
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
12
13
Next >
Hot today
Internal vs external JS
2 Votes
Can anyone guide me
0 Votes
Are certifications from Sololearn Valid to proofe or are they good or not?
0 Votes
What is wrong with my code plzz tell me i am in hurry
0 Votes
I just I just resolved the dictionary problem , the program doesn’t allow me to access to the next lesson
0 Votes
Snake game
0 Votes
Truth Table Generator wont show correct result when user inputs Logical NOT
1 Votes
Why sololearn did not allow us to...
0 Votes
Python Core
0 Votes
Whats the problem with my code i try to learn loops but apperently i suck at it lol
0 Votes