Answer:
i believe background lighting
Import java.util.Scanner;
class hola
{
public static void main(String[]args)
{
Scanner x=new Scanner(System.in);
int a=x.nextInt();
int b;
if(a>20&&a<100)
{
b=a%12;
if(b%2==0){
System.out.print("es par"+b);
}
else{
System.out.print("es impar"+b);
}
}
}
}
The exercise contains 15 questions. The solution is provided for each question.
Each question contains the necessary skills you need to learn.
I have added tips and required learning resources for each question, which helps you solve the exercise. When you complete each question, you get more familiar with a control structure, loops, string, and list.
Use Online Code Editor to solve exercise questions.
Also, try to solve the basic Python Quiz for beginners
Exercise 1: Given two integer numbers return their product. If the product is greater than 1000, then return their sum
Reference article for help:
Accept user input in Python
Calculate an Average in Python
Given 1:
number1 = 20
number2 = 30
Expected Output:
The result is 600
Given 2:
number1 = 40
number2 = 30
Expected Output:
The result is 70
Explanation:
Answer:
true
Explanation:
I think that's what it has been in my time of classes
Answer:
Chech the explanation
Explanation:
<em>In [16]:</em>
<em />
# Your answer to this question might be written on more than a line.
datascience_trials = make_array()
for i in np.arange(1000):
datascience_trials = np.append(datascience_trials, simulate_several_key_strikes(1))
datascience_proportion = np.count_nonzero(datascience_trials == 'datascience')/1000
datascience_proportion
<em>Out [16]:</em>
0.0
<em>In [17]:</em>
_ = ok.grade('q2_4')
````````````````````````````````````````````````````````````````````````````````````````````````````````
#Running tests