This assignment was to write a program that asks\u00a0the user for a temperature in Fahrenheit and then converts it to Celsius. Then it determines if water freezes, boils or stays a liquid at said temperature.<\/p>\n
<\/a> <\/a><\/p>\n The new things I used was the while loop<\/strong> and the conditional statements if, elif and else<\/strong>. A while loop<\/strong> executes code repeatedly based on a boolean<\/strong> condition (True\/False), a little like the conditional statement. The if<\/strong> statement executes code if a specified condition is true, else<\/strong> executes code if the same condition is false, that is why else always follows an if. Elif<\/strong> is short for else if and it is used to specify a new condition to test, if the first one was false.<\/p>\n All of this statements’ syntax have the condition in parentheses and a colon <\/strong>( : <\/strong>) at the end of the\u00a0condition. The code that is to be executed according to the condition must be indented to the right<\/strong>.<\/p>\n