Answer:
A programmer's job is to find solutions. They break down problems into easy steps for a computer.
Explanation:
hope I'm helping you!
SORRY BUT THERE IS No difference at all
Answer:
B
Explanation:
When you initialize an instance of FunEvent(tags, year) and assign it to bc. The instance variables in this case are: self.tags = ["g", "ml"] and self.year = 2022. But then you alter tags, which will also change self.tags, since self.tags is a reference to the list you passed in as an argument. This is not the case when you do year=2023 because, first of all, integers are not mutable, and also because even if somehow integers were mutable, you're not changing the object in-place, you're simply changing the where the "variable" is pointing to. So for example if you did tags = ["g", "ml", "bc"] instead of tags.append("bc"), it would also not change the value of the instance variable "tags", because you wouldn't be changing the object in-place. So when you print(bc), the instance variables will be ["g", "ml", "bc"] and 2022. When you try to print an object, it call try to convert it into a string using the __str__ magic method. In this case it will return a string formatted as "Event(tags={self.tags}, year={self.year}) which will output "Event(tags=['g', 'ml', 'bc'], year=2022)" So the correct answer is B
Question 1: To tell what will happen when an if-statement is false.
Question 2: The = should be ==
elseif should be elif
The else should have a :
Question 3: All algorithms can only do number calculations.
Question 4: and
Question 5: To make a follow-up True/ False decision
Question 6: if (text1 > 15):
Question 7: if (text1 == 78):
Question 8: if (num1 != num2):
Question 9: >=
Question 10: 4
Question 11: 3
Question 18: a < b and a != b
Question 19: !=
Sorry about 12 - 17 and 20 i can't seem to find those questions guessing you wanted edhesive. I dont have an account on it.