+ 3

I need help making this birthday code work!

print ", ".join(map(lambda n: "Happy Birthday to " + ("you" if n != 2 else "dear {{Name}}"), range(4)))

7th Oct 2018, 8:05 PM
Eman
4 Réponses
23rd Sep 2020, 1:58 AM
Pettem Srikanth
Pettem Srikanth - avatar
+ 6
print(", ".join(map(lambda n: "Happy Birthday " + ("to you" if n != 2 else "dear {{Name}}"), range(4))))
7th Oct 2018, 8:10 PM
Anna
Anna - avatar
+ 2
Anna you are an angel 😭😭😭thank you
7th Oct 2018, 8:18 PM
Eman
+ 1
You're welcome 😇
7th Oct 2018, 8:44 PM
Anna
Anna - avatar