Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy /
20130218bCertain characters Write a function with the following signature: valid(text, chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") The function should return a (possibly empty) string, which contains only those characters from " Examples: valid("Barking!") -> "B" valid("KL754", "0123456789") -> "754" valid("BEAN", "abcdefghijklmnopqrstuvwxyz") -> "" |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |