Security filter app that filters the accessibility of things it deems inappropriate
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)
The answer is (C)
consider how you could shorten the column labels.The label at the top of a column is sometimes wider than the
data stored in the column. Expanding a column is an option but this may mean that
you will not see as many columns on a page as possible. Wrapping text is also
an option but has a downside to it as well since it will make the row with
great height.
Rotating the labels is also a possibility but is also not recommended.
This leaves us with shortening the column labels and keep dictionary worksheet
for users. As much as you can, consider using acronyms and abbreviations.
By dragging one tab the the top right corner and holding for a few seconds it will automatically take up a certain proportion of the screen. By doing the same to the left side, the documents will be side by side and ready to multi-task with ease. This process is called "splitting screens".
Answer:
See explaination
Explanation:
a.
myString is "Hello the world"
b.
prints "15"
c.
This is invalid.
We have to use strcpy_s to copy strings
FIX:
strcpy_s(s,"Marylane");
d.
reading string upto length 80 from the user and stored it in myString variable
e.
prints the string enetered by user to console
f.
replacing 7th character by 't'