Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
what is the output of def func(x): res = 0 for i in range(x): res += i return res print(func(4))?
python
-11 Votes
17 Answers
7th Jun 2018, 2:21 PM
Saurav nalla
С какого курса лучше начать, при 0 знаниях?
начало
обучение
2 Votes
2 Answers
11th Oct 2017, 7:19 PM
Павел
Deleting node in 0 from a linked list(C)
c
linkedlist
node
0 Votes
3 Answers
23rd Jun 2020, 9:41 AM
Guido Parlatore
Is there any function can give all keys of a dictionaries the value 0
python
0 Votes
11 Answers
8th Mar 2022, 1:05 PM
Chaimae EL GUENNOUNI
Could anyone explain me the output? i = 0 while 1==1: print(i) i = i +1 print("Finished") Output: 0 Finished 1 Fi
output
python
4 Votes
2 Answers
19th Jul 2020, 6:40 PM
Dheeraj Mittal🇮🇳
I just started and have 0 knowledge... but i'd like to learn how to make a game.
begginer
games,
14 Votes
20 Answers
25th Aug 2018, 6:31 PM
Lanz Guillermo
What should be the value of "0 == 0 == 0" ?
anylanguage
c
c++
java
javascript
python
ruby
1 Vote
15 Answers
14th Mar 2019, 6:40 PM
Kristian Benoit
I am new in python, what should i do to become an data scientist from 0
code
java
python
5 Votes
14 Answers
25th Jul 2018, 4:44 PM
Farhan Sindy
Arrays ....Index 0 = 20 ,index1=25,index3=43,index 4=44,index5=67,index6=15,index7=101,index8=99,index9=8.
java
-2 Votes
4 Answers
28th Sep 2017, 8:50 PM
Mufaro Mupetesi
Why to write "return 0 ;" when function is (int main)
c++
1 Vote
12 Answers
21st Jul 2017, 8:42 AM
Deep Jani
Why should we use 0 and 1 in binary number?
binary
numbers
programming
6 Votes
2 Answers
2nd Dec 2018, 9:55 PM
Bipin Tatkare
Result always 0 when converting percent to decimal
c++
1 Vote
1 Answer
9th Dec 2022, 8:18 PM
Elliot King
How to output only even numbers? Given that x = 0 while x<=10: print(x) x+=1
codeHelp
helpme
pleasehelp
2 Votes
15 Answers
28th Sep 2023, 4:06 PM
Shiva Vishwakarma
Why s.find('') and s.find('s') returns 0 ?
methods
output
python
strings
type-specific
0 Votes
2 Answers
20th Jul 2017, 10:13 AM
Harish M
Who will call the return 0 statement ?
c
1 Vote
3 Answers
30th May 2017, 4:56 AM
Gokulakrishnan M
Why other no then 0 is not working?
c++
function
rand
random
srand
1 Vote
3 Answers
17th Mar 2017, 12:44 PM
Shuvam Pal
¿Por qué siempre me da 0 el resultado?
arrays
kotlin
0 Votes
2 Answers
20th Sep 2019, 10:40 PM
xScorpionx
Help me with this output please. I want to output "you can't divide by 0 - error 01; when someone tries to divide by 0 (Solved)
calculator
divide
error
output
1 Vote
12 Answers
6th Feb 2019, 3:32 AM
CrazySun03
What is the importance of return 0 in cop
functions
1 Vote
3 Answers
4th May 2019, 7:30 AM
J. Sanjay
Python - How come print(1 or 0 and 0) ignores the latter 'and 0' ?
and
or
python
4 Votes
11 Answers
4th Oct 2020, 9:49 PM
Solus
how to generate random decimal number between 0 - 1 , 1E-30
javascript
0 Votes
16 Answers
30th Apr 2017, 6:57 AM
Rahmat Wira Dafitra
Я не понял Что такое return 0
c++
0 Votes
2 Answers
16th Dec 2017, 10:15 AM
erjan
Why return 0 is important in c++
c++
0 Votes
2 Answers
2nd Mar 2017, 9:18 AM
Satyam Jaiswal
Why does division of 0 crash your program and C#?
c#
division
operators
4 Votes
3 Answers
26th Feb 2018, 4:36 AM
Neeron Bhatta
What is the value for 0 in variable
sololearn
2 Votes
2 Answers
13th May 2017, 5:01 PM
Harish
Why numbers starting from 0 is treated as octal in cpp?
cpp
numbers
octal
3 Votes
2 Answers
21st Feb 2020, 10:13 AM
Nandan
❓❓❓How to round integer numbers so that the last digit is 0 (or 5)?
javascript
js
1 Vote
13 Answers
28th Jan 2023, 12:51 AM
PR PRGR
Here why am I getting my output as 0 only?!?
c
if-statements
1 Vote
3 Answers
14th Apr 2018, 12:53 PM
Khushboo Gupta
why we use return 0 in the end of program
c
0 Votes
4 Answers
19th Oct 2019, 1:28 PM
Hareem Sabir
What happens if you multiply string by 0
python3
strings
0 Votes
2 Answers
5th Feb 2019, 6:13 AM
M. Anne
Do dictionaries call from 1 or 0 like list?
dictionaries
python
3 Votes
3 Answers
12th Sep 2016, 12:05 PM
Lionell Richards
When I enter the first input, the program breaks and prints 0
c
1 Vote
11 Answers
15th Aug 2019, 6:25 PM
Geek
otal= 0 for i in [1,2,3,4,5] : total=total+1 print(total)
forloop
0 Votes
3 Answers
23rd Jun 2020, 4:13 PM
SAADAT ALI
How to skip single delimiter and 0 value?
mysql
sql
task
1 Vote
1 Answer
11th Feb 2020, 9:07 PM
Zlata Zukovich
For 3/4 operation it's showing 0 not 0.75, why.!?
data-types
python
0 Votes
5 Answers
8th Jan 2017, 10:14 AM
Nitesh Dudhe
Why we add 0 in the end
python
0 Votes
2 Answers
18th Nov 2016, 10:36 AM
Chris
Создайте строку из чисел от 0 до 100 след вида "12345678"
python
python3
0 Votes
7 Answers
11th Jan 2021, 10:06 AM
Vild
How to limit potentiometer values to be between 0 and 5 in python?
potentiometer
python
python3
10 Votes
4 Answers
21st May 2019, 4:34 PM
Zhenis Otarbay
Why do we use 0 in below statement?
c#
input
0 Votes
3 Answers
3rd Dec 2016, 1:29 PM
Niresh Manandhar
Does anyone know why this code always returns 0 ?
c#
1 Vote
3 Answers
1st Oct 2019, 3:59 AM
Meysam _PHOENIX
Why can't I use the integers 0 or 1 as a key in a dictionary with the function get(), when I use a boolean as another key?
dictionaries
dictionary.get()
functions
python3
3 Votes
9 Answers
20th Apr 2021, 4:10 PM
Camila Pires
What is the usage of return 0 in c++
c++
css
css3
html5
java
javascript
mysql
php
python3
sql
xml
2 Votes
3 Answers
22nd Dec 2016, 5:39 PM
Salih Ac
Why is the output of this program : hello 0
c
6 Votes
1 Answer
24th Jan 2019, 6:30 PM
Zhenis Otarbay
How create array that only has 0 and 1 values?
arrays
java
0 Votes
2 Answers
3rd Nov 2022, 10:48 PM
FERUZ
Write a program in C++ and start with int main(). . and end with return 0 .. if we remove 0 with another number ..
c++
compile
error
function
main
operation
return
warning
6 Votes
4 Answers
1st May 2017, 8:36 AM
P∆WAN M∆URY∆
Guess a number from 0 to 9
guess,
guessgame,
guessnumber,
random,
0 Votes
1 Answer
18th Oct 2017, 2:24 PM
Agnès Lee
What's the difference between Auto , 0 auto and 0?
css
0 Votes
6 Answers
13th Nov 2016, 10:18 AM
Sidepocket
Why n is 0 in the out put why not 4
python3
3 Votes
5 Answers
8th Oct 2018, 11:31 AM
AMAN TOMAR
What is the use of return 0 in C++ main?
c++
return
1 Vote
3 Answers
1st Oct 2020, 6:36 AM
Kingsley Akpabio
Are negative array indices or 0 sized arrays valid in C++ ?
array
c++
index
negative
4 Votes
2 Answers
30th Mar 2019, 11:09 AM
Sonic
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
5
6
7
...
18
Next >
Hot today
What is a web browser intension?
1 Votes
Mentors
1 Votes
Thread local : global vs local
0 Votes
python
0 Votes
Postgrrsql and python
0 Votes
What are these purple cubes good for?
0 Votes
Codding lern
0 Votes
Data Analysis Course
1 Votes
Is there LUA?
0 Votes
url of code playground for HTML, CSS & JS
0 Votes