Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Is it possible to have a list of lists ? Example: x = [[a], [a,b], [a,b,c]]
arrays
code
lists
print
python
sololearn
0 Vote
1 Réponse
11th May 2022, 4:40 AM
SilentHealer584
Pls does anyone know the difference between target = self, parent and top, they all open in the same window...
<a
href>
target
3 Votes
2 Réponses
19th Jan 2020, 10:07 PM
Temmy
#import math nums = [1, 3, 5, 2, 4] a=((len(nums)) b= a//2 if b==1: print("math.ceil(a) : ",math.ceil(a))
python3
2 Votes
1 Réponse
19th Oct 2020, 6:44 PM
Abhijeet Kumar Verma
Look at the code snippet below: const float * ch = &c ;
answer
it
please
-2 Votes
1 Réponse
10th Aug 2017, 4:21 PM
PULKIT BHARDWAJ
Hii there can I write Scanner scn = new Scanner(System. In) ;char ch=scn.nextChar();
java
0 Vote
1 Réponse
18th Jan 2017, 2:56 PM
Suryanarayan Behera
what would happen if i put "num = num -1;" in this cycle
help
while
0 Vote
1 Réponse
10th Oct 2016, 5:06 AM
Andresgallo10
Why there is b [2] = 42 it should be 45 I think
arrays
-2 Votes
1 Réponse
2nd May 2018, 6:03 AM
Ubed Ullah
How to update image link
""
<img
=
src
0 Vote
1 Réponse
19th Sep 2020, 1:02 PM
Prasan Uday
nums = [-1, 2, -3, 4, -5] if all([abs(i) < 3 for i in nums]): print(1) else: print(2
@questions
-3 Votes
4 Réponses
6th Jun 2021, 5:26 AM
Tia
# python i = 0 while i < 10: print("hallo") i += 1 Brother and sister help this programming error
help
1 Vote
3 Réponses
15th Aug 2020, 2:23 AM
Hacker Tamil Tamila
Consider the following C code snippet: char *sentence = NULL; strcpy(sentence, "Helloworld"); printf("%s", sentence):
c
0 Vote
1 Réponse
5th May 2018, 8:22 AM
Santosh Dongare
What does f(31415927) return, for the following function definition?def f(x): d=0 while x > 1: (x,d) = (x/2,d+1) return(d)
python3
0 Vote
4 Réponses
16th Feb 2018, 3:16 AM
I Am a Baked Potato
How do I create a dictionary that uses len(word) to print all words = to len (word)
python
0 Vote
4 Réponses
7th Jun 2017, 12:35 PM
Pride Mawire
what is wrong in this code code playground = my calculator unfinished python the error is EOF
calculator
python
simple
0 Vote
2 Réponses
13th Feb 2020, 4:05 PM
Coder
How do I convert the given program to subtraction. So instead of total= no. +no.+no. I want it to be total = no. - no. -no.?
cpp
if-statements
loops
while
1 Vote
10 Réponses
19th Oct 2019, 9:47 PM
Ismail Olanrewaju
Pls, why does this code print only odd numbers in the range? And if I chnge the "if" to (x = x) it prints the full range
java
2 Votes
7 Réponses
11th Dec 2019, 6:54 AM
ISOSIYA WARMATE
public class Program { public static void main(String[] args) { } { int a = 1; while (a<=5)
tes
1 Vote
4 Réponses
18th Oct 2017, 12:04 PM
Agni Rosadi
a = 42 if a > 7 puts "Yes" end why do we put all the spaces between?
if-statements
ruby
4 Votes
2 Réponses
7th Mar 2017, 8:25 AM
Billy Dymek
nums = [1, 2, 3] print(nums * 3) >>>123123123 how to revise and get >>>246
lists
python
1 Vote
2 Réponses
23rd Dec 2016, 6:01 AM
SealCLi
age = int(input()) if(age == 0 and age <= 11): print('Child') elif(age >= 11 and age <= 17): print('Teen') elif(age > 17
python
0 Vote
3 Réponses
12th May 2022, 7:23 AM
Purple Phoenix 7
Why can't i do this on Java - Boeing = new Airplane ();? I wasn't done with the code by the way.
help
java
3 Votes
7 Réponses
8th Jan 2018, 10:40 PM
Jaren Dogan
How to print ('0' * 3) as '000' or '9' + '0' = '90' in c++?
c++
strings
1 Vote
2 Réponses
11th May 2020, 1:06 PM
Amit Dubey
Please is to be added or removed from this code n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0:
@python
0 Vote
10 Réponses
4th Jan 2023, 1:04 AM
Ohanenye Kennedy
How do I solve the Store Manager Code Project? See 44 CODE PROJECT under JavaScript for description.
=
10);
functionmain()
increase
parseint(readline(),
v
var
0 Vote
3 Réponses
7th Dec 2021, 1:09 AM
Mario Camarillo
What are the various ways to print text in Js without using document.write like e. g python = print()
document.
javascript
print
text
write
1 Vote
3 Réponses
4th May 2020, 9:58 AM
Hansel
hey, when i code x = [1,2,3] print(x) ->>> I get [1,2,3] When i code x = [1,2,3] print(x[]) I get an error How do i print 1,2,3 on my console without the '[]' around my numbers? how do i print my whole list?
lists
python
1 Vote
6 Réponses
4th Sep 2016, 2:23 PM
Oliver
What is the difference between = and == ? And when they are used ???
code
1 Vote
2 Réponses
24th Jan 2017, 1:12 PM
Pritam Vivek
How would I solve for, if(a = 8 || b==5), where int a =7, b= 1.
c++
0 Vote
2 Réponses
17th Jun 2020, 2:33 AM
Ahmed Sheikh
nums = [1, 2, 3,5] nums(1)=nums(2)-0 if 2 in nums: nums.append 8 print(nums) else: nums.append(5) print(nums) print(nums)
error
fix
0 Vote
4 Réponses
15th May 2017, 2:50 AM
chittabrata
user_input == input(':') 1=add 2=subtract 3=multiply 4=divide 5=quit if user_input ==(5) break elif user_input ==(1) num1 = fl
code
codeplayground
python
python3
1 Vote
4 Réponses
8th Nov 2016, 8:36 PM
leonardo
Python program to enter Positive number N and find numbers a and b such that a2 - b2 = N
linear_algebra
python
1 Vote
4 Réponses
15th Mar 2018, 5:39 PM
Manorama
arrays
;
“object2”,
“object3”]
[“object1”,
=
var
0 Vote
3 Réponses
1st Nov 2019, 3:04 PM
jessie
Fill in the blanks to calculate the expression x*(x+1) using an anonymous function and call it for the number 6. a = ( x:
python
-8 Votes
7 Réponses
12th Jul 2018, 10:38 AM
Patrick Mita
I need help. String a = Console.Readline (); İf ( a!= number) ... a must be number if isnt number console.writeline ( "no")
c#
filter
number
string
1 Vote
9 Réponses
23rd Oct 2017, 9:42 AM
Münir Furkan Gören
Is this Wrong - if ( int = 2 ) { cout <<"bla bla bla bla \n"; }
c++
cpp
1 Vote
4 Réponses
23rd Dec 2017, 11:17 AM
Aditya Gupta
i= int(input('Give me number!')) x = i + 10 nums=[ ] while i <= x: nums.append(i) i += 1 print(nums) Pls.e
python3
1 Vote
4 Réponses
24th Oct 2020, 2:04 AM
Sushil Mundhra
Write a Python program to find all words starting with 'a' ending with 'e' in a given string inp = "abce abde test xabe"
python
regex
0 Vote
7 Réponses
15th Sep 2022, 6:08 PM
Pavan Kuncham
What's the output of this code? list = [2, 3, 4, 5, 6, 7] for x in list: if(x%2==1 and x>4): print(x) break
#henry
-1 Vote
3 Réponses
27th Dec 2021, 5:35 PM
Opaal Henry
from randint import random #create a list of playing options t = ["Rock","paper","Scissor"] #assign random play to the computer
please
1 Vote
2 Réponses
16th Sep 2020, 8:21 AM
Gaming Rebels
How is it possible for a variable such as int a = 100; with a value as 100 be able to change to a = 50; with a value of 50?
c++
variables
0 Vote
2 Réponses
7th Jun 2017, 3:36 PM
Carlos DV
#include<stdio.h> #define MAN(x, y) ((x)>(y)) ? (x):(y); int main() { int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d,
c
program
1 Vote
2 Réponses
21st Oct 2018, 6:20 PM
LYDIA JENNIFER P
def make_word(): word = "" for ch in "spam": word +=ch yield word print(list(make_word())) Output: s, sp, spa, spam
generators
python
1 Vote
10 Réponses
10th Aug 2016, 1:06 PM
Massimo Palladini
I tried following code try: num1 = 7 num2 = 0 print("Done calculation") print (num1 / num2) except ZeroDivisionError: print("An error occurred") print("due to zero division") It's throwing an error I don't understand why can someone explain me plz
exceptions
python
2 Votes
3 Réponses
2nd Aug 2016, 12:02 AM
nikitha gireddy
for (doublCe y = .1; y != 1.0; y += .1) { printf("%f\n", y); }
c++
-1 Vote
1 Réponse
5th Dec 2021, 8:47 AM
Christine Jane Dulay
#include <stdio.h> //function declaration int factorial(int num); int main() { int x = 5; printf("The factorial o
pleasehelp
0 Vote
2 Réponses
2nd May 2019, 6:57 AM
Rahul Jaiswal
#include <iostream> using namespace std; int main() { int a; for ( a = 10; a <= 100; a+=10){ cout << a << endl;
c++
for
loops
8 Votes
5 Réponses
6th May 2017, 2:32 AM
MUʜAMMED ɪʟʟYAS
Why 26 // 5 / 2 = 2.5 ? I dont understand it :(
numeric-operations
python
0 Vote
2 Réponses
1st Dec 2015, 9:25 PM
Michal
error. x % y - это остаток от деления. 7 % (5 // 2) = 0.5
numeric-operations
python
0 Vote
3 Réponses
22nd Aug 2016, 4:37 PM
Дмитрий
Write in C ++ the while functionally equivalent to the following structure for: for (i = 1; i ≤ N; i ++)
c++
for
help
while
0 Vote
5 Réponses
2nd Dec 2019, 8:34 PM
panik 007
How to take an integer input say 24 and use it to add 2 and 4 = 6 in the next step?
beginner
howtotakeinput
input
python
0 Vote
5 Réponses
13th Aug 2020, 4:55 PM
Purnima Tripathi
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
29
30
31
...
38
Suivant >
Aujourd'hui en vedette
Python question
2 Votes
Are websites hackable?
1 Votes
Void functional void with bool function
0 Votes
Python
1 Votes
TICTACTOE
0 Votes
C# and sql
1 Votes
Error
0 Votes
Learn python
0 Votes
What course to take for AI?
0 Votes
Help for study
0 Votes