• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu

Discussions Q&R

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 Vote
2 Réponses
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 Vote
2 Réponses
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 Vote
2 Réponses
29th Jul 2016, 7:22 PM
Rupam Das
Rupam Das - avatar
< Précédent1...3435Suivant >
Aujourd'hui en vedette
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes
Alguém Português por aqui?
0 Votes