Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
If 2 goes into 5 two times, then 7%(5//2) = 7%2 which would be 3.5, but 3.5 isn't an answer.
numeric-operations
0 Votos
4 Respuestas
10th May 2019, 6:36 AM
t@y|0r
What did i get wrong? public class printx { public static void main(String[] args) { int [] array = new int [10];
java
0 Votos
4 Respuestas
13th Aug 2019, 12:33 AM
DjCisse Samuel Tsok
javascript
=
code?
const
is
of
output
square
the
this
what
-2 Votos
7 Respuestas
8th Jun 2019, 12:00 AM
Victoria Gredics
What is fault in it? I couldn't make to handle the event when touching the button😕
=
btn
document.getelementbyid(
function()
let
window.onload=
1 Voto
3 Respuestas
19th Nov 2022, 11:47 AM
Captain Thunder ⚡
import datetime def getdate(): return datetime.datetime.now() print ("Welcome to Health Management System") c_name = input (
python3
0 Votos
1 Respuesta
5th Jun 2019, 4:56 AM
Joseph Sam
How to form from [var a = prompt("...");] to [Let "A" be expressed as a string]
javascript
0 Votos
1 Respuesta
24th Apr 2020, 2:43 PM
Serg
public class Program { public static void main(String[] args) { int day = 5; switch(day) { case
tell
0 Votos
3 Respuestas
9th Aug 2017, 11:00 AM
Ramsha Iqbal
How do i calculate something like this in python? (n*(n-1))/2= 1128 i.E. n is unknown. I can't do it like x = (n*(n-1))/2= 1128
calculate
math
please_help
python3
4 Votos
6 Respuestas
17th Sep 2017, 8:08 AM
Da Riebi
i don't understand this: for example : a=4 while a=4 print (a) a = a + 1 help me please! !!!!
python
0 Votos
6 Respuestas
6th Sep 2016, 12:36 PM
youssef
Float * int (mistake): a=179*1.13 print(a) Output = 202,269999999999999 But right answer is 202.27 What is the mistake in python???
python
0 Votos
5 Respuestas
18th Oct 2016, 9:40 AM
Konstantin Markov
can an array be my variable name.eg, Var [hour, second, minutes] = [0, 0, 0]; pls explain this expression if it is correct.
javascript
2 Votos
3 Respuestas
13th Oct 2023, 10:00 PM
Temmy
What is the error in this code
=
age
array<string>)
funmain(args:
readline()!!.toint()
var
0 Votos
4 Respuestas
17th Dec 2022, 5:07 PM
gafer alip
import java.util.*; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System
java
-3 Votos
3 Respuestas
14th Dec 2020, 4:56 PM
ABDULLAHI AMINU
in python 3 ( egal is ==) , what about this one ( = ) what does it mean?
python3
-1 Voto
3 Respuestas
1st Jan 2022, 7:30 PM
Miso Bassoum
C++ Question logic doubt : I need to write a program to read and translate integers into numbers. e.g 856 = Eight five six
#beginner
#code
#cpp
#integer
#printnumber
#translateinteger
1 Voto
4 Respuestas
19th Jan 2021, 7:50 PM
Shay J
#include <string> #include <iostream> using namespace std; int main() { string colour = "black" ; cout <<" chge"; return 0;}
c++
0 Votos
2 Respuestas
31st Jul 2018, 9:01 PM
Piyush Goyal
Hello, can someone help me to rank numbers. Example: input: a = [35, 26, 65, 15], output: [2nd, 3rd, 1st, 4th].
python
python3
ranking
0 Votos
3 Respuestas
2nd Mar 2020, 3:52 PM
Osei Kwadwo
def ModeratedMarks(marks, passMarks): if marks == passMarks-1 or marks == passMarks-2: marks = passMarks return marks def main
python
0 Votos
2 Respuestas
21st Feb 2022, 6:43 AM
Anushka Dwivedi
Getting EOFE Error = EOF when reading a line. Can some one please look into this and guide how to resolve this?
error
0 Votos
4 Respuestas
3rd Feb 2022, 6:45 AM
Unnikrishnan K
Tengo dudas en php
“eduardo”;
<?php
=
$name
-1 Voto
1 Respuesta
6th Oct 2018, 11:24 PM
Eduardo
public class main { public static void main(String[] args) { Scanner scan = new Scanner(System.in) ; System.ou
java
-1 Voto
2 Respuestas
13th Jun 2021, 9:38 PM
Musaif
#! python # huge list making nn=1000000 a = [] i=0 while i #! python # Using Lists as Stacks stack = [3, 4, 5] stack.append(6) stack.append(7) print stack x=stack.pop() print "popped ",x print stack x=stack.pop() print "popped ",x x=stack.pop() print "popped ",x print stack
python
0 Votos
5 Respuestas
20th Jul 2017, 2:04 PM
paul mwengei
In python when i type x = 4 X *=3 the x its 4 and X its 18 why didn't gotcha?
result
1 Voto
3 Respuestas
19th Nov 2018, 5:43 PM
Deekshant sharma
Final keyword in java what is that? in simple language is that make float and dubal variable fix value 5.7 = 5.7?
java
2 Votos
5 Respuestas
11th Jun 2017, 9:23 AM
prashant vyas
Не запускается программа.
.")
('')
=
enter.
input
input("\n\nhae
print
1 Voto
5 Respuestas
13th Jan 2020, 5:49 AM
Владимир
I am working on a code to calulate difference between sum of odd and even levels of a BST. Here I have used a statement s = s2;
c
stack
struct
0 Votos
13 Respuestas
1st Dec 2017, 3:41 AM
Ashutosh
what means an argument from a object be like this: thread ob = new thread(new A()); ???
java
threads
1 Voto
2 Respuestas
23rd Jul 2016, 9:53 AM
Gorick X
I wanna create array of method in JavaScript i.e. var molecule = new array Tmolecule any recommendations?
arrays
javascript
js
methods
0 Votos
2 Respuestas
15th Jan 2019, 7:44 AM
Amir Rafati
Given the string matric_no = "ND/20/COM/FT/500". Write a python range statement to display: i. Level ii. Year of study iii. Cour
python3
pythontutorial
0 Votos
4 Respuestas
4th May 2021, 6:45 PM
HORLATECH
Why repeated number are not printed in set? Does same thing happens in dictionary? nums = {1, 2, 1, 3, 1, 4, 5, 6} print(nums)
dictionaries
python
python3
sets
0 Votos
5 Respuestas
2nd Jul 2021, 9:06 AM
Zahed Shaikh
What does const query selector In my code do? And what does do that const calculator = new calculator line 100-156
css
html
java
javascript
script
what
0 Votos
3 Respuestas
5th Apr 2020, 6:39 PM
kaspars kaspars
Why does index= -1 inserts "java" at 2nd last position? (As generally index = -1 means end of list(
insert
lists
python
python3
0 Votos
3 Respuestas
9th Jun 2018, 12:57 PM
Sandeep Singh
If there any way to make x = 2 when i call the second f(arr)
sololearn
0 Votos
1 Respuesta
30th Oct 2019, 5:10 PM
Abdelrhman Albarbary
public class Program { public static void main(String[] args) { int[ ][ ] sample = { {1, 2, 3}, {4, 5, 6} };
arrays
java
2 Votos
5 Respuestas
25th Oct 2017, 11:56 AM
Hasrat Wadsariya
x = 1 while x < 10: if x%2 == 0: print(str(x) + "hallo") else: print(str(x) + "world") x += 1
help
2 Votos
2 Respuestas
15th Aug 2020, 2:46 AM
Hacker Tamil Tamila
#include <stdio.h> int main() { int x[5] = {20, 45, 16, 18, 22}; printf("The element is %d\n", x[5]); /* 32766 */
arrays
-2 Votos
3 Respuestas
23rd Jan 2022, 4:35 AM
Diya Mehta
Hello everyone, help me, I wrote this code.
(let
<
=
0;,
for
i
i
0 Votos
5 Respuestas
29th Aug 2020, 10:37 PM
Jasurbek Erkulov
What's the ouput of the following: f = None for i in range (5): with open("data.txt", "w") as f: if i > 2:
python
1 Voto
4 Respuestas
1st Jan 2021, 6:27 PM
JurgenV
int main() { int i=4; int ii=i*i; int iii = ii*i; cout <<iii/ii-i<<endl ; //Outputs 0 return 0; }
code
output
1 Voto
3 Respuestas
3rd Jul 2017, 10:09 AM
Kushagra Agarwal
Tip Calculator When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right ti
#your
=
bill
code
goes
here
int(input())
-5 Votos
2 Respuestas
6th Feb 2021, 3:12 PM
Utkirbek Yuldoshev
<?php $names = array("John", "David", "Amy"); foreach ($names as $name) { echo $name.'<br />'; } ?>.
php
0 Votos
1 Respuesta
9th Aug 2019, 2:34 AM
Rajat Khatore
public class Program { public static void main(String[] args) { String[ ] myNames = newstring[5]; mystring[]={ "A", "B", "C", "D"}; System.out.println(myNames[2]); } }
arrays
java
1 Voto
6 Respuestas
15th Oct 2016, 12:17 AM
Pragathi M D
In this ex:- letters = ['p', 'q', 'r', 's', 'p', 'u'] print(letters.index('p')) why the ouput is 0 only we it is not 4
lists
0 Votos
4 Respuestas
7th Apr 2020, 7:38 AM
Mandadi Praveen Kumar
Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". var v = $("#na
answer
challenge
emergency
jquery
1 Voto
4 Respuestas
30th Sep 2019, 11:28 AM
Mayuresh Mhatre
int main () { for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }
rand
0 Votos
6 Respuestas
17th May 2020, 9:29 AM
Salini Selvam
public class Program { public static void main(String[] args) { int[ ] intArr = new int[5]; int[5]={1,2,3};
java
0 Votos
2 Respuestas
26th Jun 2017, 7:09 PM
gobiga rani
What if child class is not generic but parent class is generic in java. Then Child c = new Parent<String>(); is correct?
generic
java
wildcards
2 Votos
2 Respuestas
18th Oct 2019, 1:24 PM
Smit Kalkani
In c++ when you want to use the sum value, you should put int sum = 0; first or just int sum;?
beginner
c++
help
1 Voto
2 Respuestas
6th Nov 2023, 7:11 PM
Magdalini
python program to Reverse words in a given String in Python example str = "Capgemini" output should be reverse of that string li
python
-2 Votos
6 Respuestas
13th Feb 2021, 10:57 AM
Suresh Suresh
What is the output of this code? class Temp { public int num = 2; public Temp() { num++;} ~Temp() { num++; } } static void
c#
1 Voto
3 Respuestas
30th Apr 2019, 2:07 PM
Smit Chawda
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
31
32
33
...
38
Siguiente >
En tendencia hoy
Functions in python
2 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
Answer please
0 Votes
I need advice
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes