• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu

Обсуждения

What happens if I assign a variable x to 8, and Y to x, can i later change what value x holds? Or is Y forced to be equal to 8?
rubyvariables
2 голосов
4 ответов
2nd Jun 2017, 9:40 AM
william
static int Pow(int x, int y = 2) { int result = 1; for (int i = 0; i < y; i++) /* this is the for loop that I don't understand.
c#methods
1 голос
4 ответов
22nd Jan 2017, 5:13 PM
Steven Bennett
Steven Bennett - avatar
def add(x, y): return x + y def do_twice(func, x, y): return func(func(x, y), func(x, y)) a = 5 b = 10 print(do_twice(add, a, b)) anybody can explain what is the relevance of func in this code?
functionspython
1 голос
4 ответов
21st Aug 2016, 4:57 AM
anju
How does return function work in python?
+defadd(x,do_twice(func,returnreturnxx,y):y):ydef
1 голос
2 ответов
25th Aug 2020, 10:05 AM
Shakibur Rahaman
Shakibur Rahaman - avatar
def add(x, y): return x + y def do_twice(func, x, y): return func(func(x, y), func(x, y)) a = 5 b = 10 print(do_twice(add, a, b)) Please explain step by step Which is caller here? Explain the 3rd and 4th line ? why in 4th line we write add(add(x,y),add(x,y)) which is function of 1st line ? how can we write function after return statement insted of (x+y+x+y )=30?
python
0 голосов
2 ответов
29th Jul 2016, 7:22 PM
Rupam Das
Rupam Das - avatar
< Предыдущий12Следующий >
Актуальное сегодня
HTML
1 Votes
Functions in python
0 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 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
Answer please
0 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Why this code fails even without data race
0 Votes