Answer:
hm not sure man
Explanation:
sorry, give me crown and 5 stars tho
Answer:
Following are the method to this question:
def __init__(self, _name, _breed):#defining Constructor
""" Constructor """
self.name = _name#assigning value in name variable
self.breed = _breed#assigning value in breed variable
self.tricks = []#defining tricks an empty list
Explanation:
In the above code, a parameterized constructor is defined, that hold two-variable "name and breed" in its parameter, and another object self is created for storing the value.
Inside the constructor two-variable, and one empty list variable "tricks" is defined that hold value in the name and breed variable, and the next step an empty list is defined, that store its value.
Answer:
<em>import java.util.Scanner;</em>
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Please enter a string of words");</em>
<em> String n = in.nextLine();</em>
<em> int count = 0;</em>
<em> for (int i=0; i<n.length(); i++){</em>
<em> if((n.charAt(i) != '.') &&(n.charAt(i) != ',') && (n.charAt(i) != ' ')){</em>
<em> count++;</em>
<em> }</em>
<em> }</em>
<em> System.out.println(count);</em>
<em> }</em>
<em>}</em>
Explanation:
- Prompt User to input the string and assign to a variable
- SET count =0.
- Using a for loop iterate over the string
- if((n.charAt(i) != '.') &&(n.charAt(i) != ',') && (n.charAt(i) != ' ')) then count =count +1.
- PRINT count.
Answer:
You should send a picture of the map so people can answer directly.
Explanation:
I think it's b because "end application" would make the most sence