Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Let’s add a docstring to the greeting method. How about, “Outputs a message with the name of the person”.

 #Let’s add a docstring to the greeting method. How about, “Outputs a message with the name of the person”
  class Person:
  def __init__(self, name):
    self.name = name
  def greeting(self):
    ___
    print("Hello! My name is {name}.".format(name=self.name)) 

help(___)
  
Comment

PREVIOUS NEXT
Code Example
Python :: utils/decorators.py", line 11, in __get__ raise AttributeError("This method is available only on the class, not on instances.") AttributeError: This method is available only on the class, not on instances. 
Python :: stackoverflow - import data on colabs 
Python :: how to use visualize_runtimes 
Python :: File "main.py", line 21 print("total harga:idr", bakso bulat +str Minuman Drink): ^ SyntaxError: invalid syntax 
Python :: how to sort by date in .csv 
Python :: How to install proxy pool in scrapy? 
Python :: python returning rows and columns from a matrix string 
Python :: fb account api grabber 
Python :: python - retrieve unconnected node pairs 
Python :: is cobol obsolete 
Python :: sys executable juypter is incorrect visual code 
Python :: how many orders has customer made database python 
Python :: python update pip windows 
Shell :: run laravel lumen server 
Shell :: bash: netstat: command not found 
Shell :: git allow unrelated histories 
Shell :: Failed to start docker.service: Unit docker.service is masked 
Shell :: install git-lfs ubuntu 18.04 
Shell :: choco list installed 
Shell :: kill a port process in ubuntu 
Shell :: remove remote origin github 
Shell :: how to check windows powershell version 
Shell :: stop all container in docker 
Shell :: install redis ubuntu 
Shell :: pip install beautiful soup 
Shell :: jq on mac 
Shell :: apple m1 pod install issue 
Shell :: set java version for ubuntu 20.04 
Shell :: deactivate base conda 
Shell :: uninstall scikit learn 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =