how to fis this sentence error on puty? sentence:

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 30VE: A(n) ____________ is one instance or variable of a class.
icon
Related questions
Question

how to fis this sentence error on puty?

sentence:<function sentence at ....>
gstem.uapb.edu-PUTTY
import random
articles = ["A", "The "]
nouns - ["teacher", "achool", "boy", "baby", "dog", "hospital"]
verbs - ["eat", "sing", "walk", "dance" "drink" "read", "cook",
pronouns- ["1", "you", "he",
"us", "they"]
def subject():
return
random.choice (nouns)
random.choice (articles) +
def predication ():
return random.choice (verbs)
def statement ():
subject random.choice ([subject (), predication ()])
predication - predication ()
return subject + + predication
I
def sentence():
return statement
print("sentence:" sentence)
Transcribed Image Text:gstem.uapb.edu-PUTTY import random articles = ["A", "The "] nouns - ["teacher", "achool", "boy", "baby", "dog", "hospital"] verbs - ["eat", "sing", "walk", "dance" "drink" "read", "cook", pronouns- ["1", "you", "he", "us", "they"] def subject(): return random.choice (nouns) random.choice (articles) + def predication (): return random.choice (verbs) def statement (): subject random.choice ([subject (), predication ()]) predication - predication () return subject + + predication I def sentence(): return statement print("sentence:" sentence)
kaloson1040@gstem:~$
kaloson1040@gstem:~$
vi bnfs.py
python bnfs.py
sentence: <function sentence at 0x7f060dbbd360>
vi bnfs.py
python bnfs.py
sentence: <function sentence at 0x7f08e84ad360>
kaloson1040@gstem:~$ python bnfs.py
sentence: <function sentence at 0x7fb3be335360>
kaloson1040@gstem:~$ vi bnfs.py
kaloson1040@gstem:~$
kaloson1040@gstem:~$
Transcribed Image Text:kaloson1040@gstem:~$ kaloson1040@gstem:~$ vi bnfs.py python bnfs.py sentence: <function sentence at 0x7f060dbbd360> vi bnfs.py python bnfs.py sentence: <function sentence at 0x7f08e84ad360> kaloson1040@gstem:~$ python bnfs.py sentence: <function sentence at 0x7fb3be335360> kaloson1040@gstem:~$ vi bnfs.py kaloson1040@gstem:~$ kaloson1040@gstem:~$
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Structured English
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning