Pig Latin Code Coach Challenge
Why isn't it right? text = input() arr = list(text) arr2 = list(map(lambda word: word[1:]+word+'ay', arr)) text = ' '.join(arr2) print(text)
because list(text) return array of char... instead try: arr = text.split() wich will return array of 'words' (default split separator is the 'space' char)
visph oh, right.. forgot about that. Thanks :)
How do I generate a list with <N> unique elements randomly selected from another (already existing) list?
Given three integer matrices A(m*n),B(m*n) and C(m*n) . Print the one with more zero elements. beside code
I'm coding this for hours & can't make the value of the 5 random numbers round off to 2 decimal places like in the examples
Overloading + operator