Answer:
def scramble(s):
if len(s) % 2 == 1:
index = int(len(s)//2)
else:
index = int(len(s)/2)
return s[index:] + s[:index]
Explanation:
Create a function called scramble that takes one parameter, s
Check the length of the s using len function. If the length is odd, set the index as the floor of the length/2. Otherwise, set the index as length/2. Use index value to slice the s as two halves
Return the second half of the s and the second half of the s using slice notation (s[index:] represents the characters from half of the s to the end, s[:index] represents the characters from begining to the half of the s)
Answer:
Translation : Distributed Databases
Explanation:
Answer:
The answer is B.
Explanation:
As a graphic designer you are responsible for almost anything you do! :)
Hope this helps
Answer:
Explanation:
A constant is a name that references a value that cannot be changed while the program runs
Example in Javascript:
const x = 5;
cannot be reassign x
wronged: x = 10; (will throw an error try to assign value to constant variable)
Answer:
C. 3
Explanation:
Linear Tape Open LTO tape drives are magnetic tapes used to store data. This can be used with small and large computers for backup purposes. The backup needs to maintained frequently so that new data is backup on every interval. The is a RAID failure on database server to ensure complete backup there must be 3 backup tapes needed.