Answer:
Replace
Explanation:
Since the laptop is already 3 years old and you cant just open laptops it wuld be better to just replace
Character command shows the status.
Answer:
def UpdateScore(score, total):
if total % 2:
print total, "is odd, so adding 10"
score += 10
else:
print total, "is even, so subtracting 5"
score -= 5
print "The score is now",score
return score
score = 0
score = UpdateScore(score, 3)
score = UpdateScore(score, 6)
Explanation:
The % operator returns the remainder after division. So if you divide by 2, the remainder is either 0 or 1, where 0 indicates an even number, and 1 indicates an odd number. The above program shows that.
Well, currently in our revolving world, computers are mostly used which led to laziness for some people. However the school systems in most countries still depend on manual computing which can be really essential to the current generation. Computing can really change our current world, it helps us to not depend on computers, gives people more job opportunities. Helps to strengthen brain power which can contribute to large variety of factors. A smarter generation, and if possible, a more advance society.
Answer:
def language(mystring, n):
if n > 0:
string_list = [x for x in mystring]
string_cont = ""
for character in string_list:
string_cont += character * n
print(string_cont)
Explanation:
When n is equal to 0, that is, n=0, The python program multiplies the characters of the string "mystring" by the integer variable "n" to output a string with all characters with the same count.