Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
This is a part of my code. I want to get the value of x to work with. But it’s showing that x is not defined. Please solve.
break
else-statements
function
if
python3
return
0 Votes
11 Answers
23rd Jun 2021, 10:07 AM
Soumaya Islam Rimi
Can anyone explain ( for x in str) doing it mean running in background in this program ?
loops
python3
strings
1 Vote
4 Answers
21st Apr 2021, 8:44 AM
Andy
What is the meaning of += symbol in python?
1
x
1 Vote
2 Answers
2nd May 2017, 12:33 PM
Heerak Ghanesh (HERO)
Write the output of the following segments code int X = 7 ; int Y = 3; cout<< X/Y << " and " << X%Y;
be
fast
-3 Votes
2 Answers
24th Dec 2020, 10:54 PM
fadil Yusuf
How can i repeat background image to both x and y
html
0 Votes
3 Answers
30th Aug 2020, 9:08 AM
Dragon
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
so naturally rand() % X goes from 0 -> X-1?
c++
rand
0 Votes
3 Answers
14th Oct 2016, 5:22 AM
lucas
what will display the following program item and how many times will be executed the loop
*
=
10;
x
z;
0 Votes
3 Answers
24th Jul 2019, 11:46 AM
Сергій Дацюк
Why is x and y given 0 and 1 respectively
c#
output
0 Votes
1 Answer
5th Jun 2018, 3:06 PM
bhirkoff
Simple Web Sticky Note, notes wont remove when x is clicked
css
html
javascript
jquery
3 Votes
1 Answer
12th Oct 2021, 2:03 AM
M.O.HONOR
why in the postfix increment , x increases and y equals " old x" , even if the equals x after increment?
c#
operators
0 Votes
2 Answers
19th Aug 2016, 7:58 PM
Omar Hossam
What does this mean: #define x 5+2? And how would C++ colpile it?
c++
cpp
define
6 Votes
5 Answers
7th Mar 2018, 1:49 PM
Ali Kafi
def apply_twice(func,arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five,10)) #output:20
python
python3
0 Votes
6 Answers
13th Oct 2021, 5:55 PM
Khalif Baby👶
What is the put of this code X="a" X*=3 print x
operators
0 Votes
3 Answers
1st Sep 2020, 8:59 PM
Mark Lome
Write a program which will raise any number x to a positive power n. Obtain values of x and n from user
a
and
any
c++
from
n
n.obtain
number
of
positive
power
program
raise
to
user
values
which
will
write
x
-1 Vote
2 Answers
4th Aug 2017, 3:52 PM
Humangasaur
How is this equal to 10 var arr =[1,2,3,3,2,0] var x = 0 for (var i=1; i<arr.length; i++){ x+= arr[i] } alert(x)
https://code.sololearn.com/wufk4avd3ydi/?ref=app
0 Votes
6 Answers
23rd Sep 2018, 12:11 PM
Adebayo Ogunmoriyele
Who can Make tic tac game ( X O ) ?
android
game
sololearn
0 Votes
3 Answers
6th Jun 2018, 7:00 PM
Omar Khalil Bakhsh
In Python how do I take the input x and y and output x,ytimes given that x is a string and y an integer
variables
0 Votes
2 Answers
1st Sep 2021, 10:58 AM
Mikah Hannah
How to but image on html iam using iphone x btw
html
web
0 Votes
3 Answers
9th Dec 2022, 12:17 AM
Joe Hafez
[Python input] Why doesn't the x in the last line register?
help
input
inputs
needhelp
python
pythoninputs
pythonproblem
0 Votes
2 Answers
3rd Aug 2021, 6:27 AM
Zaquinta
Suppose int x=36 but i want to print square root of variable x then how should i give instruction to print square root of x .
c++
3 Votes
5 Answers
25th Apr 2017, 3:05 PM
Harsh
public class Program { public static void main(String[] args) { int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; System.out.println(x); } }
arrays
java
0 Votes
7 Answers
14th Oct 2016, 11:03 AM
Gopal Varma Gottimukhala
how do i make x a random number from 1 to 100?
generators
python
random
4 Votes
5 Answers
8th Sep 2016, 2:37 AM
azdbacks 17
How do I get x and y cords of a click?
python3
0 Votes
2 Answers
21st Dec 2019, 4:42 AM
Lemonades For Sale
How do I assign to the input a value x in C?
c
3 Votes
3 Answers
29th Jan 2020, 9:12 PM
Claudio Di Maio
Как указать что x больше одного значения, но меньше второго в операторе if
If
1 Vote
15 Answers
20th Nov 2017, 9:43 PM
Vladyslav Bublyk
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 Answers
27th Dec 2021, 5:35 PM
Opaal Henry
Set word as a value if user input is x (python3. 7)
if-statements
python3
1 Vote
5 Answers
24th Jul 2019, 6:14 PM
hamed
How To print the files older than some x days
python
0 Votes
2 Answers
27th Jan 2017, 7:17 AM
Gopikrishna A
What is the VALUE of ' x ' ? And How ?
increment
2 Votes
6 Answers
7th Dec 2017, 7:47 AM
Pradyumn Kumar Singh
X =7 can anyone tell me that result are depend on the program or that the X result is depending of who make a program
python
variables
0 Votes
4 Answers
1st Nov 2016, 1:41 PM
petra
[ Solved ] Why comparison 5 <= x <= 10 wont work in below code
c++
comparison
9 Votes
11 Answers
16th Jan 2021, 10:30 AM
Mr. Rahul
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Vote
6 Answers
22nd Jul 2018, 3:14 PM
ADITYA SINHA
I want that the user will decide the value of x in the first line.
ok
1 Vote
20 Answers
18th Jul 2020, 6:28 AM
Ajay
How in C # random number x average to achieve?
average
c#
number
random
0 Votes
1 Answer
9th May 2017, 3:14 AM
Hamed Tohidi From Iran
How to make a X sign using 2d array in java?
arrays
question
0 Votes
2 Answers
25th Nov 2019, 4:15 PM
Ian Karl
The output of the following code is: x = 3; if (!x) if (x=4) cout << "AAA". else cout << "BBB
c++
-1 Vote
2 Answers
21st Sep 2021, 11:42 AM
Wafaa Elayan
If x=5 and y= ++(++x++)++,what is the values of x and y?
increment
operators
0 Votes
7 Answers
28th Feb 2017, 4:55 AM
Gowtham S Reddy
Выводит вот это: x = sorted(my_list_1[1], reverse=True) IndexError: list index out of range Но код выводит то что я хочу
python3
0 Votes
1 Answer
21st Nov 2022, 9:02 AM
Plutos
How we can do a program of x raise to n ??
python
1 Vote
3 Answers
18th Aug 2019, 5:14 AM
Raj
How to raise a number to a power x in C ++?
exponential
2 Votes
2 Answers
12th May 2019, 9:20 PM
Wilson Tapia
¿Por qué el uso de x = input("ingrese edad") no imprime "ingrese edad" en solicitud de ingreso de dato en python?
input
input()
python
0 Votes
1 Answer
13th Sep 2020, 11:00 PM
Sergio Piedrabuena
How do I find 2 numbers whose product is equal to x
php
0 Votes
5 Answers
18th Apr 2018, 8:53 PM
darell
Can we replace BETWEEN X AND Y by > and < !!?
betwin
sql
where
1 Vote
5 Answers
18th May 2017, 11:51 AM
Brahim Chai
Please help why are x and y being added together ? What am I missing
def
python3
1 Vote
11 Answers
28th Oct 2022, 8:10 AM
Steven kervick
Python: How to Get the Numbers that are Greater/Less Than x in a Tuple
cpython
find
get
greater
less
numeric-operations
python
python3
than
tuples
2 Votes
8 Answers
17th Aug 2021, 11:00 PM
Katz321Juno
How to calculate x to the power y if x&y are input?
exponent
java
power
1 Vote
3 Answers
30th Sep 2018, 10:51 AM
Rishabh Rawat
Кто нибудь подскажите как решить задачу
=
=input
input
x
y
0 Votes
1 Answer
6th Aug 2024, 7:52 AM
Yuriy Balakin
l=[1,2,3,2,2,4,5,2,5,2,4] x=2 i=0 while i<l.count(x): if x in l: l.remove(x) i=i+1 print(l)
remove
0 Votes
2 Answers
24th Jul 2022, 10:39 AM
Irshad Ahmad
Where i can write a php code for my computer mac os x
compiler
php
1 Vote
9 Answers
2nd Jul 2017, 4:08 PM
Konstantinos Paradisiotis
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
9
10
11
...
18
Next >
Hot today
Void functional void with bool function
0 Votes
Python
1 Votes
Are websites hackable?
1 Votes
TICTACTOE
0 Votes
Error
0 Votes
Learn python
0 Votes
Help for study
0 Votes
BIG DOUBT🤔🤔🤔🤔
1 Votes
Need help (French)
0 Votes
What's an unsigned int?
0 Votes