F&A Diskussionen
Fibonacci challenge
1 Stimme
29 AntwortenCode Copying
10 Stimmen
2 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 Antwortendef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
return
else:
for i in n:
if i>=0:
positives.append(i)
if i<0
negatives.append(i)
new=[len(positives,sum(negatives)]
return new.
please the unittest is still telling me that my code failed the "only lists" allowed test.what do I do.
0 Stimmen
7 AntwortenHeute heiß
X velocity
2 Votes
Files not linking in C++
0 Votes
And... Who is the staff then?
3 Votes
I am a super beginner
0 Votes
Web Dev
1 Votes
Pls give me an idea
1 Votes
Why Pro?
1 Votes
Problem with Javascript
0 Votes