Q&A Discussões
Money Rate Income
1 Voto
1 RespostaPython 3
0 Voto
1 RespostaHELP WITH JS
4 Votos
1 RespostaPattern using JS
0 Voto
2 Respostas1
1 Voto
6 Respostasfunction can_i_enter(age)
if (age < 6) { document.write ("you are not allowed to watch Dead pool after 6:00pm.");}
else if (age>=6 && age<17) {document.write("you must be accompanied by a guardian who is 21 or older.");}
else if (age>=17 && age<25) {document.write ("you are allowed to watch Dead pool, right after you show some ID. ")}
else if (age>=25) { document.write ("Yah! you can watch Dead pool with no strings attached!");}
else { document.write ("Invalid age. ");}
can_i_enter (24);
0 Voto
9 RespostasHelp me fix this code
1 Voto
1 RespostaOOP Goblin Game
0 Voto
1 RespostaOr in if?
0 Voto
2 Respostaspyrhon
-1 Voto
2 RespostasRestart Button
0 Voto
2 RespostasHello guys right now I am kinda of new in python
my question is related to the function call len()
len() its print out the character but here it's the confusing part, I am working with a list let me explain an example
players
['lee', 'bob', 'moe', 'joe']
len(players)
4
why it's giving me 4 item in the list I thought len it counts the characters and if I do this it give me the correct somewhat answer what I am seeking,
len(players [-1])
3
0 Voto
8 RespostasMethod in python
0 Voto
2 Respostaswhat will be output??
#include <iostream>
using namespace std;
int main(int a)
{
cout << a << "\n";
return 0;
}
int main(char *a)
{
cout << a << endl;
return 0;
}
int main(int a, int b)
{
cout << a << " " << b;
return 0;
}
int main()
{
main(3);
main("Subodh");
main(9, 6);
return 0;
}
if output is compilation compilation error then how can we overload "main" function in C++
0 Voto
5 Respostaspython 3
0 Voto
1 Resposta9
2 Votos
6 Respostasmy_sort
0 Voto
1 Resposta#include <iostream>
using namespace std;
class A{
public:
void f1();
};
class B : public A{
public:
virtual void f1();
}
int main()
{
A * obj = new B;
obj.f1();
}
Ques: can we write virtual before an overridden function from the base class?? if yes which f1() should it call base class f1() or derived class f1()???
0 Voto
1 RespostaQuente hoje
Kernel in Jupyter
2 Votes
SQL
2 Votes
JAVA PROGRAMMING
1 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes