Python strings can be repeated using the * operator. Here, "#" is repeated to match the length of the masked portion of cc. Check out the Python tutorial.
You're right....also using a switch statement as you did saves us space, instead of storing vowels in a data structure. Although the space used for the small amount of data we are storing is essentially negligiable.
this solution will break if you pass as input not a string but a int
this really clever i loved it
Uhh..ev1l
This really helped me too! Thank you!
amazing way to do it
as a haskell noob I wonder, how is this possible?
Wow
Python strings can be repeated using the
*
operator. Here,"#"
is repeated to match the length of the masked portion ofcc
. Check out the Python tutorial.What does the * do in this case? Thank you!
What a monster are you brOther!!!?! :D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
nice dude.
This comment is hidden because it contains spoiler information about the solution
You're right....also using a switch statement as you did saves us space, instead of storing vowels in a data structure. Although the space used for the small amount of data we are storing is essentially negligiable.
Loading more items...