Enable contrast version

# Tutor profile: Sofia P.

Inactive
Sofia P.
Tutored English, Spanish, French, Java, and Python for 6 years!
Tutor Satisfaction Guarantee

## Questions

### Subject:Python Programming

TutorMe
Question:

Consider the (buggy) code below: def divide_and_round(n): """ Divides an integer n by 2 and rounds up to the nearest whole number """ if n % 2 == 0: n = n / 2 else: (n + 1) / 2 return n def main(): n = 42 divide_and_round(n) print(n) A. What will be printed at the end of the program? Why? B. What changes can you make to the program for it to print 21?

Inactive
Sofia P.

A. The divide_and_round function correctly divides n by 2 and rounds up to the nearest whole number, but does not return or print n. Therefore, the value of n in main’s print statement is still 42, and so 42 gets printed. B. def divide_and_round(n): """ Divides an integer n by 2 and rounds up to the nearest whole number """ if n % 2 == 0: n = n / 2 else: # assigns the answer to the equation the 'n' variable n = (n + 1) / 2 # returns the updated 'n' value (21) return n def main(): n = 42 # divide_and_round is called and puts 'n' (42) into its function # 'n =' is important because it 'catches' what divide_and_round returned (21) n = divide_and_round(n) print(n)

### Subject:Spanish

TutorMe
Question:

Transforme la siguente frase directa a una frase indirecta: El presidente del gobierno declaró: "estoy seguro de que, con mi nueva propuesta, a partir de ahora las leyes protegerán mejor a los ciudadanos".

Inactive
Sofia P.

El presidente del gobierno declaró que él estaba seguro de que, con su nueva propuesta, a partir de ahora las leyes protegerán mejor a los ciudadanos.

### Subject:SAT

TutorMe
Question:

Also, studies have found that those students who major in linguistic anthropology often do better than students from other majors in both verbal reasoning and analytical writing. These results can be measured by standardized test scores. Which choice most effectively combines the sentences at the underlined portion? A) writing as B) writing, and these results can be C) writing, which can also be D) writing when the results are

Inactive
Sofia P.

A

## Contact tutor

Send a message explaining your
needs and Sofia will reply soon.
Contact Sofia

Start Lesson

## FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage