Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Java symbol ( -> ) and ( = )
java
symbol
1 Vote
2 Answers
14th Jun 2019, 2:57 PM
Tzion
Output of given segment: String st = “PROGRAM”; System.out.println(st.indexOf(st.charAt(4)));
@javabeginner
0 Votes
4 Answers
14th Feb 2020, 2:51 PM
Hasshya Krishnamoorthy
How many times will the following loop work? int x = 0; int y = 5; while (x < y) { System.out.println("Hello"); x++; }
o
0 Votes
5 Answers
5th May 2022, 6:00 AM
jayson abion
static int Pow(int x, int y = 2) { int result = 1; for (int i = 0; i < y; i++) /* this is the for loop that I don't understand.
c#
methods
1 Vote
4 Answers
22nd Jan 2017, 5:13 PM
Steven Bennett
What is the output of this code? >>> x = 4 >>> x *= 3 >>> print(x)
output
python
-4 Votes
12 Answers
7th Oct 2016, 9:03 AM
suh dude
What is the output of the following code? function magic (...nums) { let sum = 0; nums.filter(n=>n%2==0).map(el=>sum+=El);}
es6
parameters
rest-parameters
solution
0 Votes
16 Answers
27th Feb 2019, 10:24 AM
Nwankwo Obioha Chigozie
pairs = {1: "apple", "orange": [2, 3, 4], True: False, None: "True", }
dictionaries
python
3 Votes
2 Answers
23rd Jun 2019, 7:38 AM
Sanduni Ayesha
What is return = 0; at the end of code?
c
0 Votes
3 Answers
6th Sep 2021, 8:05 PM
Amin
What is the result of this code? nums = (55, 44, 33, 22) print(max(min(nums[:2]), abs(-42)))
pg
python
wet
-1 Vote
7 Answers
19th Nov 2018, 7:26 AM
Priyanshu Ghatiya
int in_stock = 20; if (in_stock) printf("Order received.\n");
else
if
0 Votes
3 Answers
22nd Mar 2019, 2:14 PM
Shailendra Singh
What's wrong ... let res = async fetch(url)
javascript
1 Vote
2 Answers
8th Mar 2020, 6:29 AM
Ahmad Belal Mansoori
let mal = ["fever", "headache", "sleepless", "dizi"]; let act = ["fever", "headache", "sleepless"]; if(mal == act){ alert("s
please
0 Votes
2 Answers
28th Nov 2024, 11:21 PM
Kumah Kwadwo Roland
list1 = range(5) is [0,1,2,3,4] and list2 = range(10) is [0,1,2,3,4,5,6,7,8,9] according to the provided example. So, why does list1 index[4] not result in the answer 3?
python
range
8 Votes
8 Answers
2nd Nov 2016, 9:17 PM
johnathen
what is the solution n, p = [int(x) for x in input().split()]
-
average
data
of
rows
science
-1 Vote
4 Answers
11th Nov 2021, 8:38 AM
Zaid Zren
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
Nums = [1,2,8,3,0,7] res=list (filter(lambda x: x_5 nums)) print (res)
filter
map
python
0 Votes
3 Answers
9th Dec 2018, 10:09 PM
Max
What is the difference between = and == operators?
operators
2 Votes
4 Answers
25th Jul 2017, 3:11 PM
Prrathyush
I wrote a code with intention to obtain two numerical inputs and add them but its not working: pls help var V = prompt("enter V"); var U = prompt("enter U"); var ln = U+V; document.write(ln);
javascript
operators
0 Votes
7 Answers
10th Dec 2016, 2:44 AM
Nwaburu Emeka Christian
Could I use: $VAR = [1, 2, 3, 4]; for arrays
arrays
php
3 Votes
8 Answers
2nd Jul 2016, 11:29 PM
Danila Fedotov
y_true = [int(x) for x in input().split()] y_pred = [int(x) for x in input().split()] import numpy as np y_true=np.array(y_t
don't
i
know
0 Votes
2 Answers
9th Aug 2022, 4:39 PM
Agnesh Vinciya
fill in the blanks to create a list and print its 3rd element. list = _?_ 42, 55, 67] print(list[ ____ ])
python
r
-2 Votes
2 Answers
2nd May 2021, 6:36 AM
Aryan kumar
Give and explain the output of the following? int main () { int i, n = 4; for (i = 0; i++<n; i++) cout<<i<<"i"; }
c++
loops
2 Votes
9 Answers
20th Jun 2016, 3:12 PM
Rashad
Why a += "abc" not equal a = a + "abc"
list
python3
strings
0 Votes
6 Answers
30th Jul 2019, 5:31 AM
Дмитрий Кудря
Why does my code not work for axis = 1: I want to stanardize a matrix
numpy
python
standardize
5 Votes
6 Answers
7th Jun 2021, 2:41 PM
Oma Falk
nums = [1,2,3] [str(num)+ 'Hello' for num in nums]
lists
0 Votes
2 Answers
31st Jul 2021, 6:39 AM
Dipanjan Basu
ques 1. int y = 5; cout<< ++y + y++; ques 2. int y = 5; cout<< y++ + ++y; how is it working?
c++
decrement
increment
2 Votes
7 Answers
26th Aug 2016, 3:43 AM
Pahul Preet Singh
Select * from Birey b where Id = (select OgrenciId from SınavOgrenci s where s.Notu=92 )
sql
0 Votes
21 Answers
26th Apr 2020, 9:08 AM
Paradise Paradise
Why does my if else statement not execute with addition if the user input is [c = +, a = 2 & b = 3]
#beginner
#ifelse
#java
0 Votes
1 Answer
29th Dec 2017, 1:51 AM
Nibras Alam
what is the output of following program type def int integer # define int chat void main () { int i= 65; int *ptr = &i; int *j =
def
defi
following
int
integer#
of
output
programtype
the
whatis
-1 Vote
10 Answers
29th Sep 2021, 6:39 AM
Abubakar Sk
What is int x = 1, function in the program.
loops
2 Votes
2 Answers
8th Jul 2018, 7:17 AM
martins micheal
Hi guys. Can any one explain what the (key = len) meaning?
python3
1 Vote
6 Answers
26th Apr 2022, 11:09 AM
Abdullah Essa
Fill in the blanks to check if the age variable is greater than 18: int age = 25; ( > 18) { cout << "Adult"; }
c++
else-statements
-2 Votes
10 Answers
16th Apr 2018, 3:44 PM
Casey Oleski
Подскажите в чем проблема при i = 2 и 4
c++
1 Vote
6 Answers
7th Oct 2017, 4:27 PM
Юрий Исаев
I can't print my array with int a = arr.length
arrays
1 Vote
4 Answers
14th Feb 2021, 11:23 PM
Francisco Guadarrama Sanchez
Completa los espacios en blanco para crear dos objetos de la clase "personas". gente obj1 = gente(); obj2 = gente
classes
java
0 Votes
1 Answer
21st Nov 2018, 2:12 PM
SOFIA
How will you approach for program that computes this function f(X) = f(X+1) + X?
code
coding
competitive
maths
recursion
6 Votes
4 Answers
15th Jul 2019, 5:41 PM
Shubham Pratap Singh
(C# Questhion) Why is 19 % 4 = 3?
csharp
1 Vote
4 Answers
17th Feb 2018, 1:38 PM
INIGUMA
Plz explain me.... int d = s2.compare(s2.size() -1,1,s3,s3.size() -1,1);
c++
0 Votes
5 Answers
9th Mar 2017, 8:01 AM
shweta
what is the output of this code?? int x = 15; int y =6; x% =y; Console.WriteLine(x);
c#
-7 Votes
21 Answers
10th Jul 2016, 2:19 AM
marl tidalgo
What is the difference between the <input name = ""> and <input value = ""> attributes for <form> in HTML?
<form>
<input>
0 Votes
3 Answers
25th Aug 2018, 10:26 PM
David Sebastián Mendoza Cruz
What does a statement like "int& p = a" mean?
&
int&
pointer
0 Votes
4 Answers
9th Mar 2020, 11:13 AM
Сергей Куликов
I don't understan this operator %= why the result is 3 for this expression? int x = 15; int y = 6; Console.WritLine(x %= y);//output 3
c#
0 Votes
9 Answers
15th Jun 2016, 5:53 PM
Tommaso
Why does the output of int a = 100; a = 50; cout << a; come out with 50 instead of 100?
c++
variables
1 Vote
5 Answers
26th Nov 2016, 12:22 AM
Talkiestcobra6
a = 6 while a >=2: print(a) a -= 1 b = 6 while True: print(b) b -=1 if b <=2: break
python3
0 Votes
2 Answers
30th Oct 2020, 12:49 AM
Sushil Mundhra
How is total_score = total_score + score possible?
javascript
python
0 Votes
2 Answers
12th Dec 2018, 6:17 PM
kritesh patel
import pandas as pd from sklearn.linear_model import LogisticRegression n = input() n_split= n.split() n_int = int(n_split[0])
sololearn
0 Votes
1 Answer
10th Aug 2022, 3:02 PM
Furquan Ahmed
Integer b = Integer.valueOf("444",16); And int b = Integer.parseInt("444",16); Both returns 1092. Can anyone explain how?
parse
parseint
valueof
-1 Vote
1 Answer
7th May 2018, 9:29 PM
Syeda Zobia Kanwal
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
list
1 Vote
3 Answers
12th Feb 2021, 11:20 PM
Tom Clark
#include <iostream> using namespace std; int main() { int a = 100; a = 50; cout << a; a = 12; cout << a; return 0; } this code shows output as 5012 why isn't it showing 12? please help
c++
variables
0 Votes
10 Answers
14th Aug 2016, 6:16 PM
Harshit
x = 0.1+0.1+0.1-0.3 print ('x is {}'.format(x)) print (type(x))
float
0 Votes
2 Answers
4th Jan 2021, 2:40 AM
Anil R Chinchawade
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
14
15
16
...
38
Next >
Hot today
PHP Tutorial Idea
1 Votes
Use Python for string manipulation and sorting.
1 Votes
So how do I create python file and be able to code in it?
0 Votes
How to open the test cases on sololearn I tried so many times with the correct code
0 Votes
Gimme some advice
0 Votes
can anybody tell me a trick to earn followers
0 Votes
Data science
2 Votes
Modal dialog to modeless dialog
0 Votes
Doubt in C
0 Votes
Php?
0 Votes