Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Hi! I'm a newbie here, just wanna ask about what does this sign "%" do in these codes, def even (x) if x % 2 == 0: ?
functions
python
1 Vote
5 Réponses
31st Mar 2017, 1:20 AM
Arvin Orpilla
Why is the value of n (when printing n1:{n} after the r(lst,n-1) becomes 2 and not 1?what happens when the function do return?
code
python
resursion
0 Vote
1 Réponse
9th Jul 2023, 1:40 PM
Azalea
why there us not a single method for values to round up there are 2 methods floor and ceil
java
math
0 Vote
1 Réponse
20th Oct 2016, 9:19 AM
Onkar Ashok Gumate
Explain how: if not True: print("1") elif not (1 + 1 == 3): print("2") Gives the output as 2
boolean-logic
python
0 Vote
1 Réponse
26th Oct 2016, 2:31 PM
Brave
How can it be infinite if there stayed while 1 == 1: Because after first time "i" would be 2 and it's not any more while true: ?
loops
0 Vote
4 Réponses
5th Nov 2018, 12:52 PM
Benzema
What happens if we partially intialize an array?
0
1
2
a[3]={1,2}//
int
output
2 Votes
1 Réponse
19th Nov 2017, 10:12 AM
Anthem
I am a 14 year old boy i love programing i started learning java 2 months ago but i think i should learn Python.what should i do
a
-3 Votes
3 Réponses
28th Feb 2020, 1:38 AM
krishna
How to make a c++ program for student grade and percentage for semester1 and semester 2 each semester has 5 subject.
c++
conditions
else
If
0 Vote
2 Réponses
20th Apr 2017, 6:29 AM
Noor Haider Okz
I have been using c++ for competetive coding since 2 years but now i want to switch to python. What are the pros and cons?
c++
code
python3
1 Vote
3 Réponses
3rd Mar 2018, 8:08 PM
Ajeet kumar
In this code I can not do a while loop of 3 turns ... To put 2 entries, then another and then another, to know which of the two
code
java
python
4 Votes
3 Réponses
9th Feb 2018, 8:21 AM
Raúl Almagro
I cant understand this....> 1 != 1 False >>> "eleven" != "seven" True >>> 2 != 10 True.... with true of false
python3
1 Vote
2 Réponses
31st Jan 2018, 8:44 PM
Reptilian Hermit
Why does my result for Conditionals and Loops Break and Continue question 2 say it's wrong but, all the answers are correct?,
2
and
break
c#
conditionals
continue
loops
question
0 Vote
1 Réponse
17th Sep 2018, 6:42 PM
JOYCE YUN
( The code project 2 ) , when replacing multiple of 3 by '*'.. position of 3 is getting replaced but 3 still gets printed below
c#
1 Vote
2 Réponses
10th Sep 2021, 9:12 AM
Saood Aga
I want to prepare a program taking 2 numerical inputs from the user for comparison and then showing the result.
else
If
python3
0 Vote
2 Réponses
3rd Feb 2017, 5:21 PM
Suneet Mehta
The snail climbs up 7 feet each day and slips back 2 feet each night. How many days will it take the snail to get out of a wel
@chris
1 Vote
3 Réponses
25th Aug 2022, 1:40 PM
BÉLÏ3VÉR
can you help me ?i want to replace line10 to 20 of the test file to test 2 file but i can`t do with fgets(st, 20, fin2)
c++
file
1 Vote
1 Réponse
19th Jun 2021, 6:49 PM
alireza mohammadian
Why is the answer to this program 2 and not 3? The x++ doesn't cause the value of x to increase in the end? Why?
loops
1 Vote
2 Réponses
26th Aug 2018, 3:29 AM
Mohammad Nadeem
How does c++ figure the result of more than 2 conditions in (if, while , for) if i didn't use any ()??
c++
conditions
howitworks
1 Vote
2 Réponses
14th Jan 2017, 10:00 PM
Mina Ghaly
In forms.py line-no.15, there is .clean() and the method name is also clean(). So whats the difference between those 2 clean met
django
python3
0 Vote
1 Réponse
20th Aug 2022, 7:48 AM
Levi
In excel the rows are horizontal or vertical?I am confused bcoz i have 2 books and both of them have diff information .
excel
0 Vote
2 Réponses
14th Mar 2019, 7:04 PM
Astha Bisht
I want to create a program which will count number like 1 and then 2 and then 3 when user click the button every time.
javascript
0 Vote
2 Réponses
18th Jul 2019, 3:27 AM
Noor
when generating randomly 2 numbers in c++ between 1 and 3 what i have to do if i don't want the first nb to be == second nb
c++
0 Vote
3 Réponses
8th Dec 2020, 9:21 AM
nano
weird array is the array in which direction weird number X and size of array is at least 2 and number Axis weird if the count of
please
0 Vote
2 Réponses
4th Feb 2023, 11:17 AM
manoj
Help to solve it in simple way,please! Write a code, which will have a function, that will multiply 2 matrices A and B of X to X
c++
code
coding
cpp
exam
help
solve
0 Vote
2 Réponses
4th Dec 2020, 4:07 AM
Azat Malgazhdar
If I have for loop which start with i=1 under for loop I write if(i!=2)so under if I write a=i so value of i become 2 or not
c
programming
0 Vote
3 Réponses
29th Dec 2019, 2:29 AM
Hridayansh
Дано вещественное число — цена 1 кг конфет. Вывести стоимость 1.2, 1.4, … , 2 кг конфет. нужно с циклом do while
c#
0 Vote
1 Réponse
23rd Mar 2018, 6:26 AM
Виктория
I don't understand how to i attatch image in HTML. Can anyone show me a sample? I am confused .. Since 2 days.
help
0 Vote
1 Réponse
17th Jul 2023, 7:36 PM
Michael Borson
Why does the part between line 2 to 4 executes first when we know that Constructor gets invoked first always ?
java
0 Vote
1 Réponse
27th May 2022, 5:21 AM
animus
what do you do when you have 4 checkbox, and want the maximum of tick able check box to be only 2 out of the 4
html5
0 Vote
2 Réponses
6th Jan 2021, 2:45 PM
Hamed Babatunde Lawal
How can I make a button that when I clicked on it it write's 1 and when I clicked on it again it get's 2 and...
help
1 Vote
3 Réponses
9th Feb 2018, 9:50 PM
Sina
in the float lesson it for division a single forward slash was used but in numeric operators it uses 2 forward slashes why??
data-types
python
0 Vote
2 Réponses
2nd Feb 2017, 1:58 AM
Xmea
If we want that our computer asks for a no. or a string 2 times, how to do it by using cin >>?
c++
1 Vote
2 Réponses
12th Apr 2017, 2:11 PM
Rahul Sonia
How to add to html program like if we press a button something will come but we have to use 2 div id like <div="a">h</div> and
prikshit
0 Vote
3 Réponses
26th Sep 2020, 7:15 AM
《G __O__D》
Write a python program to print the sum of all odd numbers from 1 to 100.
"b"
"c")
("a"
(1
=
2
3)
tuple1
tuple2
tuple3
-5 Votes
7 Réponses
12th Oct 2020, 2:39 PM
wherearetheavocados
ValueError: invalid literal for int() with base 10: ''
[
]
@
+92
2
active
ago
days
ikass
0 Vote
5 Réponses
29th May 2020, 2:40 PM
Daniele Baldoni
how to compute lcm for more than 2 number ..like for 6 or more numbers in python??whats the problem with this code ?
python3
0 Vote
1 Réponse
20th Jun 2020, 5:29 AM
mahsa
How to get the input in following code in straight line like. 1 25 + 5 2 30 please tell how to get output in only twolin
python
python3
0 Vote
2 Réponses
21st Jan 2021, 4:42 AM
Tanishq Kamble
Take a 4 digit no. Write program to display a no. whose digits are 2 greater than the corresponding digits of the no.ex.123 246.
-2 Votes
4 Réponses
22nd Feb 2018, 1:49 PM
Vikram Vm
i have created 2 activities in same project on android studio...and when i run it via my phone ...only main activity runs
android
1 Vote
1 Réponse
10th Jul 2018, 5:07 PM
Dhanaraj S
How to produce random sets of 2 or 3 numbers in JS or JQ ? Or is there any other way ?(All the numbers must lie between 1 and 6)
css
games
html
javascript
jquery
0 Vote
4 Réponses
2nd Jul 2020, 9:32 AM
Yashvardhan Singh
import numpy as np # Create an array of rank 2 my_arr = np.array([[1,2,3,4], [5,6,7,8]]) print(my_arr) print(my_arr[1, 2]) # a
-2 Votes
1 Réponse
2nd Dec 2022, 4:43 PM
Urkki Saksi
Guys how do I write a function that returns the smallest number whose first (n) multiples contain the digit 2
java
0 Vote
1 Réponse
30th Mar 2017, 8:44 AM
Ricardo Chitagu
If x = v and v is x 2 then x,then how could you write it in two letter,number,or signal?
python
-2 Votes
1 Réponse
9th Nov 2017, 11:23 AM
TheTalentedKid
не получается вводить несколько слов. ввожу к примеру 2 слова а на экране выводит только первое слово. как нужно правильно?
input
output
python
-3 Votes
3 Réponses
2nd Aug 2016, 6:14 PM
Алексей Прокопович
I'm software tester, got 2 yrs. Of experience in the same. Would like to learn languages for learning automation testing?
AUTOMATION
software
testing
0 Vote
1 Réponse
20th Jan 2017, 4:35 PM
Manas
Write a program to read 2 value x, y and print the quotient and remainder value separately of division (x/y)
java
0 Vote
1 Réponse
22nd Oct 2017, 3:54 AM
Sunil Kumar Gupta
How to become a good Software Assurance Engineer for around 2 years to gain experience and then a Business Analyst ?
analyst
business
future
quality
testing
1 Vote
1 Réponse
12th Aug 2017, 10:44 AM
S.Naveen Kumar
if i got 2 inputs in my java code, how should i write them? one after one or write them both?
java
0 Vote
2 Réponses
20th Jul 2016, 9:56 AM
Yuval Mor
Please where I'm wrong. It take an input and reverse it and multiply every second number by 2 and show the sum of the numbers.
javascript
0 Vote
1 Réponse
3rd Aug 2022, 2:06 PM
Ibrahim Habibu
Why am i coding and when i run a program i get errors like "unexpected < on line for example 2 and on the line there is <form>
html
js
php
0 Vote
3 Réponses
5th Apr 2020, 8:32 PM
Yasini BIRATEGETSE
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
40
41
42
...
44
Suivant >
Aujourd'hui en vedette
Javascript
3 Votes
I Had Solve My Own Way But I See Others Method which I had added as Comented code I don't Understand Working Can You explain me?
2 Votes
What i do?in html intermediate level i dont like.
2 Votes
Please Modify My Code
1 Votes
How to get mentor in solo learn.any mentor who response my activity🥹
1 Votes
What is late happening in late binding
1 Votes
Why text takes time to load
1 Votes
Why my code closes when i choose a border and submit?
0 Votes
Digital currency
1 Votes
Did You resolve Calculating The Discount?
0 Votes