F&A Diskussionen
Money Rate Income
1 Stimme
1 AntwortHELP WITH JS
4 Stimmen
1 AntwortPattern using JS
0 Stimmen
2 Antworten1
1 Stimme
6 Antwortenfunction 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 Stimmen
9 AntwortenWhat is the problem with this code?
0 Stimmen
1 AntwortAdding onto an output file?
1 Stimme
2 AntwortenValue "none" keeps being returned
0 Stimmen
1 AntwortHelp me fix this code
1 Stimme
1 AntwortOOP Goblin Game
0 Stimmen
1 AntwortOr in if?
0 Stimmen
2 Antwortenpyrhon
-1 Stimme
2 AntwortenRestart Button
0 Stimmen
2 AntwortenHello 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 Stimmen
8 AntwortenMethod in python
0 Stimmen
2 Antwortenwhat 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 Stimmen
5 Antwortenwhy when i use editor for that code didn't print the result automatically and i shoud insert print function first
the code is:
float (insert('enter a number: ')) + float (insert(' enter another number: '))
when i use this code in IDLE the program prints the result automatically
0 Stimmen
3 Antworten9
2 Stimmen
6 AntwortenHeute heiß
What is a web browser intension?
1 Votes
Python loops
1 Votes
Web page
1 Votes
Percobaan
0 Votes
Mentors
0 Votes
Codding lern
0 Votes
Postgrrsql and python
0 Votes