Choose the best option:
Nevertheless, despite the limitations of the study, it is possible to....... the values that have led parties to favor particular electoral methods.
Johns .... several examples of ego-targeting in the corpus.
Assignment: Conditional Logic and Loops in Python
🎯 Learning Objectives:
Implement conditional branching (if, elif, else) using Boolean expressions and logical operators.
Safely handle input and typecasting.
Use loops to iterate through lists and apply the accumulator pattern.
Understand the role of indexes in list-based iteration.
Certainly! Below are the modified tasks with a different scenario while retaining the core concepts like conditional checks, user input, and handling division by zero for Task 1, and income-based calculations for Task 2.
Write a Python program that:
Accepts two values: the temperature (temp) in Celsius and wind speed (wind_speed) in km/h from the user.
Checks:
If the temperature is equal to the wind speed → print "Temperature and wind speed are the same."
If not equal, print which one is greater (temperature or wind speed).
If the temperature and wind speed are not equal, print the quotient and remainder when dividing the larger value by the smaller one.
Handle division by zero if the wind speed is zero (i.e., avoid division by zero errors).
Write a Python program that:
Takes input of a user’s total purchase amount (as an integer).
Based on the purchase amount, calculate the discount:
₹1,000 to ₹4,999 → 5% discount
₹5,000 to ₹9,999 → 10% discount
₹10,000 to ₹49,999 → 15% discount
₹50,000 and above → 20% discount
Print:
Purchase Amount: ₹
Applicable Discount Rate: %
Discount Amount: ₹<calculated_discount>
Final Amount After Discount: ₹<final_amount>
Що розуміють під магнітною енергією струму?
А) власну енергію струму
Б) енергія феромагнетика
В) створення магнітного поля, зумовленого індукційними струмами
Г) створення магнітного поля, зумовленого екстраструмами
Д) правильної відповіді тут немає
Чому теорія Максвелла є макроскопічною теорією?
А) не досліджується фізичний зміст тих явищ, які відбуваються у середовищі при поляризації і намагнічуванні;
Б) розглядаються електричні і магнітні поля, які утворюються в об'ємах набагато більших, ніж об'єми окремих атомів і молекул;
В) електричні і магнітні поля поширюються із скінченною швидкістю;
Г) електричні і магнітні властивості середовища характеризуються трьома величинами, а саме e, m і s;
Д) правильної відповіді тут немає.
Як змінюється швидкість руху зарядженої частинки під дією сили Лоренца?
Що є силовою характеристикою магнітного поля?
А) Густина струму
Б) швидкість руху заряджених частинок
В) вектор магнітної індукції В
Г) напруженість магнітного поля
Д) правильної відповіді тут немає
Закінчіть фразу: «Магнітне поле прямолінійного струму - вихрове поле, бо циркуляція вектора ...
А) ...вздовж замкненої поверхні не дорівнює 0»;
Б) ...вздовж ліній індукції не дорівнює 0»;
В) ...вздовж ліній індукції дорівнює 0»;
Г) ...вздовж ліній індукції є завжди сталою величиною»;
Д) ...вздовж ліній індукції змінюється з часом».