Answer:
Explanation:
class TimeToSleep() {
main bunch of stuff (string argos) {
int age;
string comedy;
bool guess;
public bool imTheMasterMethod() {
guess = true;
while (guess) {
comedy = "You forgot to put the flowchart, you meathead!";
println(comedy);
scan("%d", &age);
if (age < 18) {
println("Go to sleep kiddo!");
}
}
}
}
}
The answer is Undo I think
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)