subject

PLS HURR!1!1!1!1 What is the scope of the variable hardness?

class pencil:
color = 'yellow'
hardness = 2
class pencilCase:
def __init__(self, color, art):
self. color = 'black'
self. art = 'wolf'
def __str__(self):
return self. color + " " + self. art
# main part of the program
pencilA = pencil()

A) limited to the pencilCase class

B) limited to the main part of the program

C) limited to the pencil class

D) accessible to all parts of the program

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
PLS HURR!1!1!1!1 What is the scope of the variable hardness?

class pencil:
color...
Questions
question
History, 20.11.2020 07:30
question
Social Studies, 20.11.2020 07:30
question
Mathematics, 20.11.2020 07:30
question
English, 20.11.2020 07:30
question
English, 20.11.2020 07:30
question
Chemistry, 20.11.2020 07:30
question
Physics, 20.11.2020 07:30
question
SAT, 20.11.2020 07:30
Questions on the website: 13722360