Answer:
1. TECHNOLOGY GRADE 9 TERM 3. In this chapter, you will revise the work you did on electrical systems and control
Explanation:Circuits can be found in just about every electronic device you ... An electric circuit is in many ways similar to your circulatory system
Answer:
Nothing will be printed
Explanation:
You can easily find out that FL is not a member of the Dictionary. And we are checking these in the if. Since the if condition ends up being false, the further process will not run as they will only if the condition ends up being true. Hence, nothing will be printed.
Remember, del is used to delete a dictionary item. If this would have been a true condition for if then the FL item in the dictionary would have been deleted as it, in that case, would have been present there. And then the next line would have again added the FL item, and print would have printed the dictionary items with FL item as well. However, since if the condition is ending up being false, nothing will be printed.
If cities['FL'] and print is outside if then
the output will be
{'FL': 'Tallahassee', 'GA': 'Atlanta', 'NY': 'Albany', 'CA': 'San Diego'}
Answer it your own self everybody can't always give u the answers
Answer:
The python function is as follows:
def fact(N):
factorial = 1
for i in range(1,N+1):
factorial = factorial * i
return(factorial)
Explanation:
This line defines the function
def fact(N):
This line initializes the product of 1 to N to 1
factorial = 1
This line iterates through 1 to N
for i in range(1,N+1):
This line calculates the product of 1 to N i.e. factorial
factorial = factorial * i
This line returns the factorial
return(factorial)
Answer:
b) Plus sign
Explanation:
The plus sign or addition operator (+) accomplishes concatenation. This is a greatly used in the Java's output Statement to combine values coming from different data types into a formatted output
consider the code snippet below which uses concatenation to output information about an individual
public class Name {
public static void main(String[] args) {
int age =18;
String name = "John";
System.out.println("His name is "+name +" and his age is "+age);
}
}
The + operator has been used to concatenate the int value age and the String value stored in name to the output