• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu

Dyskusje Q&A

I want to use "System.out.print();" to get input from users. How can I define the input as a string so that I can use if statement to check whether the input is equal to a word I set like "red"
java
0 głosów
2 odpowiedzi
16th Oct 2016, 8:06 AM
Cheung Kim Fung
Cheung Kim Fung - avatar
in nested 'if' . why dos 'if' statement is execute the first answer, even there is some right answer in below. why is work in first come first serve, if I wanted to get more answer in an 'if' state ment is it possible in python
if-statementspython
0 głosów
2 odpowiedzi
13th Nov 2016, 7:42 PM
Arun karthick
Arun karthick - 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 głosów
2 odpowiedzi
29th Jul 2016, 7:22 PM
Rupam Das
Rupam Das - avatar
< Do tyłu1...3435Dalej >
Popularne dzisiaj
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Should i learn python more or HTML?
1 Votes
Quiz
0 Votes
how much time will it take to learn python OOP if i spend 1 hour everyday
0 Votes
C++ Vectors
0 Votes
Code challenge
0 Votes
Does solving a code coach actually give XPs?
2 Votes
A Little Question Here!
1 Votes
(Resolved) Error: Gcc undefined reference to sha 256 🙄🤦🏽‍♀️
1 Votes
can't understand an error
0 Votes