مثل آقای امیری انجام میدم اما خطا میده

Ar Ba
28 تير ۱۴۰۱

:def hello (name)

   print(f"salam  {name}").        

def  sms (phone):

   print(f" sms   send  to the   {phone}")

_________

import mymodule

mymodule.sms(""0911445415541545478)

mymodule.hello("ali")

_______________

Traceback (most recent call last):

 File "c:\Users\User\Desktop\New folder\frist.py", line 2, in <module>

   mymodule.sms("0911445415541545478")

AttributeError: module 'mymodule' has no attribute 'sms'

275

1 پاسخ
  • Hossein Azimi30 تير ۱۴۰۱

    دوست عزیز لطفا فایل کد یا عکسش رو اینجا ضمیمه کنید