بر اساس الگو های داده شده، تابعی بنویسید که شورتکد داده شده را به کد html تبدیل کند.
    
نمونه ورودی و خروجی
convert_class_html("p.one.two.three") ➞ "<p class='one two three'></p>"
convert_class_html("p.one") ➞ "<p class='one'></p>"
convert_class_html("p.four.five") ➞ "<p class='four five'></p>"
    نکته
ورودی یک رشته است.
convert_class_html("p.one.two.three")  ➞ "<p class='one two three'></p>"
                                                                    convert_class_html("p.one")  ➞ "<p class='one'></p>"
                                                                    convert_class_html("p.four.five")  ➞ "<p class='four five'></p>"
                                                                    پاسخ های کاربران به این تمرین
برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید
                                            
نظرات