Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
can i use this "elememt.className.replace(cl2,cl1)" Instead of this "element.className = elememt.className.replace(cl2,cl1)"
classes
classname
javascript
0 Votes
3 Answers
25th Apr 2021, 8:44 AM
Ahsan Tony
Explain how the following code outputs 8 List = [1,1,2,3,5,8,13] Print(list[list[4]])
python
quiz
0 Votes
3 Answers
30th Apr 2017, 12:46 AM
Joseph
Could anybody explain why j = - 2 in this code? (Java)
java
0 Votes
1 Answer
5th Oct 2019, 8:11 PM
Federico Riva
Why language.length is giving 0?What is wrong in this code ? I was expecting language.lenth = 2.
checkbox
form
html5
input
javascript
2 Votes
7 Answers
26th Apr 2020, 11:07 AM
Ankur Singh Oli
What does it mean by <div class = "section">?
class
css
div
html
meaning
section
0 Votes
1 Answer
25th Sep 2018, 5:59 PM
Jimmy Neutron
What is the result of this code? >>> x = "a" >>> x *= 3 print(x)
=
>>>
code?
is
of
result
the
this
what
x
0 Votes
1 Answer
25th Mar 2020, 4:50 AM
Ugochukwu Celestine
What is the output of this code? int arr[] = {2, 4, 6}; int x = (*arr + 1) * (*(arr + 1)); cout << x;
cpp
1 Vote
1 Answer
30th Aug 2020, 2:55 PM
Bayzid
Please explain concept of line 2......it returns de = (0,90,20) .......how🤔🤔
concept
python
0 Votes
2 Answers
21st Jan 2021, 3:26 PM
Surkhab Khan
class Person: first_name: "Audu" last_name: "Musa" age: 20 obj = Person() print(obj.first_name)
classperson:first_name:
-1 Vote
3 Answers
10th Sep 2022, 9:30 AM
Abdulgaffar Muhammad
List = [1,2,3] if I'll multiple all the value of list from 3 then how to multiply
loops
python
0 Votes
13 Answers
30th Jan 2018, 7:58 PM
shashank shekhar
int i = 2, j = i; if (Convert.ToBoolean((i | j & 5) & (j - 25 * 1))) Console.WriteLine(1); else Console.WriteLine(0);
2,
i
i;
If
int
j
1 Vote
1 Answer
2nd Oct 2017, 9:24 AM
ASHOK KUMAR
i = 2 while i <=5: print(i) i+= 1 print("Finished!")
loops
2 Votes
1 Answer
23rd Feb 2018, 9:35 PM
Deepak Kumar
Why does this output weird things and not what I want it to. class goblin: def __init__(self, hitpoints, health): self.hitpoints = hitpoints self.health = health gragnack=goblin("10",100) print(gragnack)
class
output
python
1 Vote
4 Answers
7th Jan 2017, 2:36 AM
Nate
Could someone explain the logic behind sum of x= 12|3 and y = 15|3 as 30?
python3
1 Vote
11 Answers
4th Mar 2018, 4:55 AM
pankaj pokharkar
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
java
0 Votes
5 Answers
27th Jun 2017, 2:43 PM
Walter Mugo
Why this statement is legal C statement?? int apple = ‘c’ ;
c
0 Votes
2 Answers
22nd Mar 2021, 7:27 AM
STOP
Sorry to bother i am asking how can i use 2 tables in select like this $query = mysqli_query($con," select from user where
ajax
javascript
php
1 Vote
18 Answers
24th Aug 2020, 8:41 AM
Hoo Lee Sheet
What is the meaning of *x = *x +1?
c++
functions
pointer
1 Vote
1 Answer
21st Jan 2018, 2:52 AM
Purvank Bhiwgade
This is our assignment in Php, f(5) = 1+2*3+4*5
php
0 Votes
1 Answer
30th Nov 2016, 9:34 PM
Warren Crown Cristal
Why is the reference count of b = 100
cycle
life
object
1 Vote
1 Answer
30th Sep 2017, 8:10 PM
stephen haokip
Why do you write the line: yourName = Console.ReadLine();?
c#
input
0 Votes
1 Answer
1st Dec 2016, 5:17 PM
Bryan De Costa
What if you write: x = 12 \n x = x + 'string' \n print (x) ; is the output then "12string"?
python
variables
0 Votes
2 Answers
25th Aug 2017, 3:00 PM
Leon Orou
class MyClass { public static void main(String[ ] args) { int a=0; int even = 0; for(even = 0;even <= 100;++even
java
1 Vote
1 Answer
2nd Mar 2017, 2:49 PM
Sahil
words = ["hello", "world", "spam", "eggs"] for word in words: print(word + "!")
python
0 Votes
3 Answers
29th Nov 2017, 12:05 PM
Programmer
What is the output of the following code? int x = 14; System.out.println(x++);
#15
0 Votes
3 Answers
8th Aug 2022, 4:17 PM
DR.VENGATESAN.G COMMERCE-CA
What is the better way to define my variable ? Should I use int var = 10 or int var (10) ? = or () ?
c++
variables
0 Votes
4 Answers
15th Sep 2016, 9:50 AM
MARINA
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
Write all solutions for a^3+b^3 = c^3 + d^3, where a, b, c, d lie between [0, 10^5]
+
=
a^3
b^3
c^3
d^3
1 Vote
14 Answers
25th Feb 2019, 12:29 PM
Ethem
What is the output of this code? spam = 7 if spam > 5: print("five") if spam > 8: print("eight")
if-statements
python
-1 Vote
9 Answers
5th Dec 2016, 3:49 AM
Jose Sagastizado
public class Main { public static void main(String[] args) { int a = 'a'; System.out.print(a); } }
java
2 Votes
6 Answers
9th Sep 2018, 7:29 AM
sapan
try: num = 5 / 0 except: print("An error occurred") raise
exceptions
python
0 Votes
3 Answers
24th Apr 2017, 4:24 AM
arun kumar
int myArr[5]; for(int x=0; x<5; x++) { myArr[x] = 42; }
arrays
c++
0 Votes
2 Answers
10th Dec 2017, 5:33 PM
utkarsh
What is the output of this code? int n = printf("0"); printf("%d", n);
c
codecoach
codeplayground
2 Votes
2 Answers
26th Oct 2020, 6:20 AM
Suman Kumar Dey
How do you read (pronounce) a = 5 in English? I think I remember "a gets five"?
assignment
pronunciation
python
variables
2 Votes
12 Answers
23rd Sep 2016, 4:27 PM
Miro Marchi
How is the best programming language. For example = Java c++ c python or javascript
c
c++
java
javascript
python
2 Votes
5 Answers
14th Oct 2020, 2:28 AM
Devesh Shukla
x = Tuple("10","20","30","40","50") Tuple =("10","20","30","40","50") print("reverse") whats wrong on my code help pls
reverse
0 Votes
3 Answers
26th Sep 2020, 8:25 PM
Arlyn dela Cruz
Difference between x %= y*2 and x = x % y * 2.
c#
difference
1 Vote
5 Answers
13th Jun 2017, 7:26 AM
Arild
what is wrong with this code? s = input('enter number: ') print (s)
input
output
python
1 Vote
5 Answers
6th Aug 2016, 2:54 AM
lego guy
String text = ""; // in java what will be the value of text?
java
0 Votes
6 Answers
31st Oct 2018, 10:00 PM
Mind To Machine 💻🕆
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sourav = new Scanne
java
0 Votes
13 Answers
25th Jul 2017, 8:41 AM
Sourav Kumar
const sebuahObject = { fungsi: () => { console.log('Hai Dunia Kucing!!') } }
javascript
0 Votes
3 Answers
15th Jun 2020, 8:36 PM
Febriantika Triarini
if x = [1, 2, 3, 4, 5], what is the output of print(x[ : ])?
lists
1 Vote
4 Answers
21st Apr 2020, 8:47 AM
Md. Faruk Hossain
How should i do to make gender = "F" even if it is in if statement.
java
2 Votes
7 Answers
25th Oct 2017, 4:15 PM
YuHai
int x = 3; while(x > 0) { System.out.println(x); x--; } /* Outputs 3 2 1 */
loops
1 Vote
2 Answers
6th Aug 2018, 11:49 AM
Saurabh Negi
Please explain the meaning of this "?" in java language. Using this example int var = (7>5)?7:5;
coding
java
javaprofessionals
professionaldevelopers
programmers
1 Vote
8 Answers
26th May 2019, 1:50 PM
Iredafe Owolabi
Are there effective methods for memorizing? If so, share your methods.
=
int
int()
new
x
5 Votes
3 Answers
30th Jun 2019, 3:42 PM
Fsg So
What is the value of h(6,8) for the function below?def h(m,n): ans = 1 while (n > 0): (ans,n) = (ans*m,n-2) return(ans)
python3
0 Votes
2 Answers
16th Feb 2018, 3:16 AM
I Am a Baked Potato
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5)
variables
0 Votes
2 Answers
4th Mar 2018, 1:36 PM
Rahul Nath
will addition of integers also give me a float value? Eg. 2 + 3 = 5.0 or 2 + 3 = 5
data-types
python
0 Votes
2 Answers
15th Jan 2017, 7:18 AM
Quinn
Does var y = 15; not automatically declare y as an int?
c#
0 Votes
2 Answers
2nd Sep 2019, 2:50 PM
Nico van der Merwe
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
21
22
23
...
38
Next >
Hot today
About android&apple compatibility
1 Votes
Gimme some advice
1 Votes
Php?
0 Votes
Doubt in C
1 Votes
How to open the test cases on sololearn I tried so many times with the correct code
0 Votes
React js
0 Votes
how to create my own html page
0 Votes
Why am I not able to message anyone?
0 Votes
Data science
2 Votes
Contribution to my portfolio project "Mata Tech Solutions".
1 Votes