Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
When you're writing your code what do you prefer? (Less lines / max speed = dilema)
code
scripting
4 Votes
2 Answers
4th Jan 2018, 5:06 PM
Miso
import random class Vaguelist: def __init__(self,cont): self.cont = cont def __getitem__(self,index): retu
#python#oop
-1 Vote
1 Answer
10th Nov 2021, 12:59 PM
Phenomenal
Drag and drop from the options below to create a LinkedList, add "Hey", and print it. <String> list = new LinkedList ();
"bye"
"hey"
<string>
0
1
arraylist
linkedlist
solutions
0 Votes
4 Answers
6th May 2018, 1:12 AM
Asem Abdu Ahmed AL jadwh
Can anyone tell why I'm getting the following output in System.out.println(1+2+” = “+1+2); and output is 3=12??
java
5 Votes
2 Answers
12th Mar 2017, 9:39 AM
Sagar Maharana
23.(i) What is the output of the following code snippet? a = [ 'Region',[1,2,3,4]] print(a[0][2],end=' ') print(a[1][3])
codeplayground
0 Votes
4 Answers
13th Aug 2021, 12:15 AM
Krishnapriya
find the first 20 numbers of the Fibonacci sequence and puts into a list using recursive way.. Example - List<Integer> l1 = ne
20
and
fibonacci
finds
first
numbers
of
puts
sequence
the
1 Vote
10 Answers
5th Sep 2019, 10:29 PM
Ify Nonyelu
pairs = {1: "apple", "orange": [2, 3, 4], True: False, 12: "True", } print(pairs.get("orange")) print(len(pairs))
dictionaries
python3
0 Votes
2 Answers
24th Mar 2022, 3:27 PM
Eyob Yifru
a = 2 if a == 1: print("one") else: if a == 2: print("two") else: if a == 3: print("ok")
help
-2 Votes
6 Answers
16th Oct 2020, 2:55 AM
Hacker Tamil Tamila
Anyone could ask me what == means? What is the difference between = end == ?
if-statements
0 Votes
3 Answers
15th Jan 2019, 1:20 PM
Mike
why its is showing the output of last method call i.e "CopyConstructors c3=new CopyConstructors(c2)" = 0?
constructors
java
objects
0 Votes
3 Answers
15th Oct 2020, 9:44 AM
Harsh Vyas
import Java.Util.Scanner; public class Program { public static void main(String[] args) { Scanner AgeScan = new
java
0 Votes
3 Answers
30th Jan 2019, 1:56 PM
Tilly Moore
Hacer un programa que, dado un valor de x, calcule el valor de la función: f(x) = 1 – x + x2/2! – x3/3! + x4/4! – x5/5! + …
c++
-1 Vote
19 Answers
11th Jul 2020, 2:18 AM
Daniel Enrrique Rios Carran
Input a string and print all the words which are ending with a vowel. String = "We love india".
strings
0 Votes
4 Answers
11th Mar 2022, 3:25 PM
Mera Content
float(9**x) == 9**x = True , if x <= 16 but False if x> 16 why?
python3
type-conversion
1 Vote
2 Answers
18th Dec 2019, 5:05 PM
Ankur Singh Oli
Guassian elimination with partial pivoting to solve a system of linear equations Ax = b
python
-1 Vote
3 Answers
2nd Aug 2022, 8:31 PM
Siyabonga Mbendane
Given a list = [102,343,'que', 2.2,50]. What would be the output of print (list [0:2])
python
1 Vote
2 Answers
11th Feb 2019, 8:52 PM
kiggwe mike
Scanner class
(system.in)
=
new
sc
scanner
1 Vote
4 Answers
30th Jun 2024, 6:34 AM
Aditi Chand
Вот еще один код на языке Swift: ```swift import Foundation let os = OperatingSystem.current os.println("Welcome to the operat
,
:```import
!")
.
print("
start_up():
timedef
wh
0 Votes
4 Answers
9th Aug 2023, 12:49 AM
gets
result[j++] = (char)((int)c[0]^32). How to do work this code?Someone explain me.Pls,I'm confuse.
c#
0 Votes
1 Answer
6th Sep 2017, 12:11 PM
Lin N
int i = 2; while (i <=10) { cout<<i<<” ”; i+=2; }
c++
programming
-5 Votes
3 Answers
8th May 2020, 4:25 PM
Mihaela Trencheska
const A &x = A(1); // where A is a defined class
c++
code
reference
0 Votes
1 Answer
9th Jul 2017, 3:53 AM
Kushagra Agarwal
public class Carseat { static int state = 3; static int idle=1; static int belted=2; static int unbelted=3; public static vo
switch
0 Votes
6 Answers
20th Oct 2019, 1:03 PM
Sinthani Ngulube
Var = 42 num // kind of nuts but getting hang of it ...
variables
0 Votes
1 Answer
28th Mar 2018, 10:48 PM
Beayond Jay Blackwell
Please what is the meaning of this syntax in python3 --> e.g: a = b//c ?
python3
question
0 Votes
3 Answers
24th Apr 2020, 9:06 AM
YoungMind
fun main(args: Array<String>) { var total = 200 var items=7 println(total / items) println(total % items
modulo
-2 Votes
3 Answers
11th Sep 2022, 5:18 PM
Ephrem Hailu
int a = 5 % 10; System.out.print(a); why is the answer 5? Shouldn't the remainder be 10?
java
modulo
remainder
1 Vote
3 Answers
11th Apr 2020, 4:00 AM
Cyrus X Almani
# Take the number of available spaces as an input spaces = int(input()) # Display message if spaces are available if spaces <=
hfhdhdud
1 Vote
7 Answers
26th Sep 2023, 5:01 AM
Victoria Dionne Camacho
window.onload = function() { alert("Comment your quiz score and percentage i dare you wont score upto 100%😁lol") const quizDa
javascript
0 Votes
5 Answers
20th May 2023, 5:28 AM
KIDS ALL KIDS
list = ['a', 'b', 'c', 'd'] print list[1:-1] ## ['b', 'c'] list[0:2] = 'z' ## replace ['a', 'b'] with ['z'] print
lists
python
0 Votes
1 Answer
16th Nov 2016, 12:49 AM
subhan d
import sys import pygame from pygame.locals import * pygame.init() # Resolution is ignored on Android surface = pygame.display.
python
4 Votes
1 Answer
16th Jan 2021, 4:35 PM
Manas Sahu
How function chaining is working without T& as return type of operator + and =
c++
function_chaining
operator-overloading
1 Vote
1 Answer
28th Mar 2022, 2:46 PM
Ketan Lalcheta
Fill in the blanks to replace all '!' characters in str with a dot '.' x = str. replace (' ', ' ')
python
3 Votes
5 Answers
6th Jul 2023, 7:02 AM
Arooj Amina
WHAT is the output of birth_year = input("what is ur birthyear? ") age= 2021 - birth_year print(age)
python
python3
0 Votes
3 Answers
3rd Jan 2021, 9:13 AM
SURAFEL SAM
What happens if you leave a part of an array blank? Example: int myArray [3] = { 0, 2, };
arrays
c++
3 Votes
4 Answers
28th May 2018, 8:41 PM
Jeremy
Help me Pyton
=
=
defsearch(text,
if
in
input()
input()
text
word
word
word):
0 Votes
3 Answers
19th Jun 2022, 5:25 PM
Siroj Quziboyev
what is the output of the following code? int a =11; int b = 12; int c =40; if (a> 100 || b > 3) { system.out.println (a); } else { system. out. println (c);}
java
operators
1 Vote
24 Answers
15th Aug 2016, 9:51 PM
Abdullah
Can someone please explain me why the "-1" in this line "max_index = len(words) - 1"
loops
python
3 Votes
2 Answers
3rd Jan 2016, 11:49 PM
Diogo Vilaça
operator = input("enter operator (+,-,*,/) : "). Syntax error occurring in this , how to fix it ?
")
(+,-,*,/):
choose
operator
operator=input("please
0 Votes
4 Answers
4th Jan 2022, 4:34 PM
Mahaveer Singh Ranawat
Good night, as the formula for the table would be, is that it has to be as follows x = 0 + 0.2 and following x = 0.2 + 0.4
java
loops
0 Votes
2 Answers
10th May 2021, 12:41 AM
Astrid
How can I use color or other Css stuff to design document.innerHTML = " example"
css
help
html
javascript
0 Votes
2 Answers
10th Sep 2022, 6:01 PM
Elijah Adebanwo
Se puede asignar un número entero (int) como una variable en Python por ejemplo (1 = "hola mundo")
pregunta
python
variables
1 Vote
4 Answers
3rd Aug 2023, 11:12 PM
Leonardo Díaz Ruiz
would using JS (nav.innerHTML = ‘...’) be a bad idea for putting nav and footer on multiple pages?
footer
html
multiple
nav
pages
1 Vote
3 Answers
7th Mar 2021, 11:53 PM
Ginfio
What mistake I have made in this code for question given below. bill = int(input()) x=float((bill*20)//100) print(x)
@tipcalculator
-1 Vote
3 Answers
17th Jun 2021, 9:06 AM
Piyush Verma
x = 5 // I'm a beginner anyone who can help me? Teach me the basic coding?
comments
0 Votes
2 Answers
30th Apr 2019, 2:35 PM
Syrhel John Dela Cruz
How would I make a code with python to solve "a^2 +b^2 = c^2"? assuming that's the right equation.
equation
math
python
solve
0 Votes
3 Answers
14th Dec 2020, 2:21 AM
amanda
fib = {1: 1, 2: 1, 3: 2, 4: 3} print(fib.get(4, 0) + fib.get(7, 5))
dictionaries
python
1 Vote
2 Answers
9th May 2017, 4:28 AM
AJITH KUMAR
What is the output of this code? enum Test {a=2,b,c,d,e}; static void main (string [] args){int(x) = (int)Test.c ; writeln (x)}
enums
-3 Votes
4 Answers
7th Jun 2017, 11:50 PM
thomo
int x=10, float y=3.3, int ans = x * y, ans is 32, why not 33 ?
c++
float
int
multiplication
operators
1 Vote
4 Answers
4th Jan 2018, 10:57 AM
cc122
class Person: def __init__(self, name): self._name = name @property def name(self): return self._name
python3
-2 Votes
2 Answers
1st Dec 2020, 7:22 AM
S8tanGaming_YT
What is the output of this code if the user enter '42' as input: age = int(input()) print(age+8)
abcstringsandvariables
modul2quiz
python3
-4 Votes
5 Answers
7th Nov 2020, 7:14 AM
Mehar Jaiswal
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
27
28
29
...
38
Next >
Hot today
About android&apple compatibility
2 Votes
Gimme some advice
1 Votes
Php?
1 Votes
how to create my own html page
1 Votes
React js
0 Votes
Data science
2 Votes
Hi how to make game
1 Votes
let mal = ["fever", "headache", "sleepless", "dizi"]; let act = ["fever", "headache", "sleepless"]; if(mal == act){ alert("s
0 Votes
C language to make UI
0 Votes
Petition to make sololearn add node.js and/or back end courses
1 Votes