Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
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
import java.util.*; public class Bowling { HashMap<String, Integer> players; Bowling() { players = new Ha
java
1 Vote
1 Answer
19th Jan 2021, 5:02 AM
Samriddhi sinha
for (int x = 0 x <= x += ) { cout << << endl; }
c++
loops
0 Votes
5 Answers
21st Dec 2018, 10:03 AM
Najam Us Saqib
class X end x = X.new puts "Object data: "
methods
ruby
0 Votes
1 Answer
7th Mar 2019, 6:07 AM
Raja V
How to insert links in html
<img
=
alt
src
0 Votes
5 Answers
29th Dec 2022, 5:49 PM
barkat gaming
list = [0,1,2] for i, v in enumerate(list): print(v+i,end =") #output:024 why?
python
python3
0 Votes
2 Answers
31st Oct 2021, 8:28 AM
Khalif Baby👶
Как зделать input() для имеющегося списка, по типу список = ["бла" "бла"]
paython
1 Vote
1 Answer
8th Apr 2023, 6:01 PM
Maksims/マキシム
How to solved that problem
{
=
let
mathhelpers
1 Vote
3 Answers
11th Feb 2020, 6:05 AM
Rony Prevot
After watching a video I learned that int x = Convert.ToInt32(Console.ReadLine()); and int x = 0 x = int.Parse(Console.ReadLine()); essentially seem to be the same thing...why is that, and when would one way come in handy over the other?
c#
0 Votes
3 Answers
2nd Aug 2016, 4:15 AM
Dakota Lewis
What is the output of this code? let x = 0; for(let i=0;i<3;i++) { x+=i; } console.log(x);
development
loop
web
1 Vote
5 Answers
21st Jan 2023, 9:02 AM
Lusine Galstyan Nikolay
what is the difference between these initializations? class A { private int i; { i = 67; } } and class A { private int i = 67; }
java
3 Votes
3 Answers
13th Aug 2016, 3:46 PM
Sardor
def mystery(s): for i in range(len(s),1,-2): s = s[1:]+s[0]; return(s) mystring="siruseri" mystring=mystery(mystring)
python
2 Votes
2 Answers
18th Feb 2018, 6:18 AM
kamalesh vra
why i cannot do pattern = r"(.+) /2" in "word word word"?
python
regular-expressions
0 Votes
4 Answers
7th Aug 2016, 9:14 PM
Benedek Máté Tóth
Guys 11+1 = 100 how this makes sense ? I'm unable to get it.
javascript
0 Votes
2 Answers
2nd Jun 2022, 12:33 PM
Davinder Kumar
Given a string as input, you need to output how many times each letter appears in the string. You decide to store the data in a
=
input()
text
-2 Votes
3 Answers
20th Apr 2022, 2:49 PM
Alabi Ayodele
In Ruby, what does the Puts "a = #{a}" do?
{a}
a
ruby
0 Votes
2 Answers
14th Feb 2017, 3:33 PM
Lucas
What is the output of this code? a = 4 puts a**2
ruby
1 Vote
1 Answer
22nd Jul 2023, 4:02 PM
Griffins M
int x = 1; while(x > 0) { System.out.println(x); if(x == 4) { break; } x++; }
break
java
loop
while
2 Votes
4 Answers
5th Nov 2019, 3:23 AM
Minhaj Haider
how to assign value of z = ++b without changing the value of b.
javascript
0 Votes
4 Answers
17th Aug 2019, 7:07 AM
Safaa Alnabhan
If 01 in Binary = 1 in Decimals, But how output display will display 1 in the screen!!!
binary
pixel
4 Votes
11 Answers
24th Sep 2017, 4:07 AM
Deekshith K
why do we put () in int** a = new int*[n]()
conceptual
doubt
1 Vote
1 Answer
13th Jul 2019, 9:14 AM
Snigdh
words = ["hello", "world", "spam", "eggs"] for word in words: print(word + "!")
loops
1 Vote
4 Answers
10th Mar 2018, 2:16 PM
Hari Susanth K S
Python - what does ' obj.__n = 3 ' do in this code?
class
python
1 Vote
3 Answers
30th Sep 2020, 10:23 PM
Solus
Devinez la valeur stockée dans la valeur de la variable "rowHeight" du code suivant: laissez hauteur = 40 laissez isCheck = true
"rowheight"
ischeck
let
swift4
0 Votes
1 Answer
18th Feb 2021, 1:25 PM
Vladys
When it says import random for i in range(5): value = random.randint(1, 6) print(value) What does the 'i' mean?
modules
python
5 Votes
12 Answers
7th Apr 2016, 5:14 AM
Bam Morgan
Why not working degrees. Why if, for example, 5 ^ 2 output is an error, not 5^2 = 25
error
5 Votes
4 Answers
21st Apr 2019, 3:37 PM
KolaTender
Fill in the blanks. A { private int x; public A( val) { x = val; } }
constructors
java
0 Votes
5 Answers
3rd Jul 2017, 10:51 AM
Walter Mugo
How to add image in html webpage
"forwork.jpg">
<img
=
src
-1 Vote
5 Answers
24th Dec 2020, 9:27 AM
Imraj Ahmed
[Answered by Dayve and Andrew Grider] Index explained better please arr[2] = 42;
arrays
java
2 Votes
3 Answers
16th Jul 2017, 2:50 PM
Reisi
Hello guys , i dont understand the role of <div class = "section">
"section">
<divclass
=
0 Votes
2 Answers
29th May 2020, 7:19 AM
Amina Sbaghi
No entiendo que hago mal
=
=
c
capital
el
letcountry
readline();//complete
readline();let
1 Vote
3 Answers
8th Feb 2023, 12:50 PM
Masiel Venegas
If x = 2 then after executing the statement “ x = x + x + +” the value of x will be
c++
-2 Votes
2 Answers
23rd Apr 2020, 4:16 AM
Salman Hanif Safi
<?php $mix = array("Cars"=> array("Alto","Scooty"),"Fruit"=>array("orange","Mango")); foreach ($mix as $s){ echo "$s"; }
best
code
error
hard
php
question
0 Votes
1 Answer
30th Jan 2020, 2:49 PM
Yaro Ka Yar
Program to print" 3hrs 60min+ 2hr 40 min = 6 hrs 40 min".
help
please
0 Votes
4 Answers
10th Jan 2018, 11:34 AM
Vivek Mishra
squares = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] print(squares[1:-1]) print(squares[9:-1]) print(squares[8:-1]) print(squares[7:-1
lists
python
0 Votes
6 Answers
6th Nov 2016, 6:04 AM
Jitesh
width = "50" and "50%" are the same or not, and why ?
width
2 Votes
3 Answers
9th Jan 2018, 9:30 AM
Filip Kovacevic
When we have to use = and when == ?
python
0 Votes
2 Answers
8th Sep 2016, 6:10 AM
Rushil
Why do we write Scanner myVar = new in that example?
java
0 Votes
1 Answer
2nd Jun 2018, 6:38 AM
Janani B
What is the meaning of b - = a+ in c++
c++
1 Vote
2 Answers
14th Sep 2017, 5:37 PM
Ahmed Eltaweel
# This program calculates rate and distance problems print "Input a rate and a distance" rate = input("Rate: ") distance = input("Distance: ") print "Time:", (distance / rate)
python
strings
0 Votes
4 Answers
21st Sep 2016, 3:25 PM
AYEYEMI ISRAEL
Fill in the blanks to declare a variable, add 5 to it and print its value. >>> x = 4 >>> x = 5 >>> print
=
>>>
code?
is
of
output
pythowhat
the
this
x
0 Votes
2 Answers
30th Apr 2020, 9:42 AM
Nikhila Bangaru
int array [5] = {5}; ? what the element in the array of the following code ?
arrays
-2 Votes
5 Answers
15th Apr 2019, 11:53 PM
Fernando Fergan Yugan
can someone explain to me what is the (alt = " ")
images
1 Vote
2 Answers
10th Mar 2019, 11:22 PM
adrian arrieta suarez
RUS: int *p = new int(); Что делает значение в скобках? И где можно это применить?
()
c++
help
new
0 Votes
8 Answers
9th Sep 2018, 12:40 PM
FeatheredEmperor
Print duplicate elements in the list and how many times they present in the list?..a = [1,2,3,5,8,4,7,9,1,4,12,5,6,5,2,1,0,8,1]
python3
0 Votes
7 Answers
3rd Jun 2020, 6:25 AM
Yabesh Sam
Why is 5^3 = 124 in the following code snippet and how do we correct the error?
c++
8 Votes
5 Answers
17th May 2017, 8:29 AM
Sheena Singh
i defined var x = 0704 ; and the o/p was 452 .can some one explain why
javascript
variables
0 Votes
11 Answers
18th Apr 2017, 5:22 PM
vineet pokhriyal
String a = "a"; String b = "b"; if(a.equals(b)){ System.out.println("a equals b"); } in above why we wrote " a.equals(b)" i cant understand.. describe in details plz.. i m a beginner
if-statements
java
2 Votes
4 Answers
28th Jul 2016, 7:43 AM
Niki Patra
can anyone explain this code syntax !? password[i] = passSymbols.charAt(rnd.nextInt(passSymbols.length()));
java
1 Vote
1 Answer
10th Aug 2016, 6:02 PM
Nikhil markad
years + % + $ = n$ => money counter
bank
counter
helper
money
python
python3
useful
1 Vote
1 Answer
21st Dec 2017, 12:27 PM
Denys
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
22
23
24
...
38
Next >
Hot today
About android&apple compatibility
1 Votes
Gimme some advice
1 Votes
Doubt in C
1 Votes
Php?
0 Votes
How to open the test cases on sololearn I tried so many times with the correct code
0 Votes
how to create my own html page
0 Votes
React js
0 Votes
Why am I not able to message anyone?
0 Votes
Data science
2 Votes
let mal = ["fever", "headache", "sleepless", "dizi"]; let act = ["fever", "headache", "sleepless"]; if(mal == act){ alert("s
0 Votes