Top answers


How would you loop over every key and value in a python dictionary?

The method depends on which python version you are using.For python 2.xfor key, value in d.iteritems() ... For python 3.xfor key, value in d.items() ... In both examples key, and value are just variable name...
KN
Answered by Kelvin N. Python tutor
1930 Views

The line AB has equation 5x + 3y + 3 = 0. The point with coordinates (2k + 3, 4 -3k) lies on the line AB. How do you find the value of k.

This kind of question requires correct substitution by setting the x in the original equation equal to the x value of the point ( 2k+3) and setting the y value of the original equation to the y value of the ...
KN
Answered by Kelvin N. Maths tutor
4685 Views

Explain two contrasting Christian views on abortion in contemporary Great Britain. (4)

Some more liberal Protestant Christians, such as those who belong to the Church of England, view abortion as wrong due to humans terminating life being a contradiction to moral law, but as permissible in cer...
BF
13953 Views

How do you form hypothetical conditionals in Latin?

In Latin, possibility is denoted by the use of the subjunctive mood rather than the indicative. There are 3 types of conditional: future, present and past. As there is no future subjunctive in Latin, the ten...
EW
Answered by Elise W. Latin tutor
3689 Views

What is the point of an Operating System?

An operating system performs multiple tasks that are vital for a computer running smoothly. E.g.Used to control the hardware of the system/resource management through software like hardware drivers/system so...
KN
Answered by Kelvin N. Computing tutor
1833 Views