Programming and Problem Solving through Python : Operators Expressions and Python Statements

संवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी , To increase the value of x five times using an augmented assignment operator, the correct expression will be

To increase the value of x five times using an augmented assignment operator, the correct expression will be




Solution
B. x *= 5



Explanation

x*=5 is equivalent to x=x*5, where first it multiply the value of n with 5 and then assign/ overwrite the value of n by it.

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad