Q. In front of Python prompt, i.e., In [] prompt, type following expressions one by one, by pressing return key after every expression, e.g.,


NOTE :- In []: stands for input command and Out | stands for output here Python shows the output.

In[1] : 6*3
It will show output lines starting with Out[ ] :, e.g.:
Out [2] : 18

[Carefully notice, when you assign an expression to a name e.g., P = 2 + 3 in front of prompt In[ ], does Python display anything? When does Python display and when not?]


 
Expression Result (what Python returns)
1 6 * 3
2 3 ** 3
3 6 + 2 * 4
4 (6 + 2) * 4
5 5 - 3 - 3
6 k = 5 - (3 - 3)
7 9.0 ** 0.5
8 (5 + 3.1) * 5
9 S = 5.0 – (3 – 3.0)
10 S
11 x = 12.0 / 4
12 x
13 7 - -7 - -7
14 8 / 6
15 a = 8 % 3
16 a
17 3 ** 2 ** 0
18 (3 ** 2) ** 0
19 a + 5
20 3.0 * 0.5
21 9.0 % 3
22 -9.0 % 4
23 6.2 % 4
24 2 < 5
25 3 < 5 and 5 < 3
26 4 < 3 or 6 > 7
27 3 <= 3
28 4 != 5
Answer :-
 
Expression Result (what Python returns)
1 6 * 3 18
2 3 ** 3 27
3 6 + 2 * 4 14
4 (6 + 2) * 4 32
5 5 - 3 - 3 -1
6 k = 5 - (3 - 3) Python simply store the value of variable ‘k’.
7 9.0 ** 0.5 3.0
8 (5 + 3.1) * 5 40.5
9 S = 5.0 - (3 - 3.0) Python simply store the value of variable ‘S’.
10 S 5.0
11 x = 12.0 / 4 Python simply store the value of variable ‘x’.
12 x 3.0
13 7 - -7 - -7 21
14 8 / 6 1.3333333333333333
15 a = 8 % 3 Python simply store the value of variable ‘a’.
16 a 2
17 3 ** 2 ** 0 3
18 (3 ** 2) ** 0 1
19 a + 5 7
20 3.0 * 0.5 1.5
21 9.0 % 3 0.0
22 -9.0 % 4 3.0
23 6.2 % 4 2.2
24 2 < 5 True
25 3 < 5 and 5 < 3 False
26 4 < 3 or 6 > 7 False
27 3 <= 3 True
28 4 != 5 True

17 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. hi for the 2nd one the answer is 27 not 9

    ReplyDelete
  2. this is very helpful. Thanks

    ReplyDelete
  3. 7 aur 13
    nhi aaya

    ReplyDelete
  4. 7 aur 13
    nhi aaya

    ReplyDelete
    Replies
    1. ek baar mene apni gaand mai namak wali mirchi daali, bhaut aanand aya...

      Delete
  5. I can't understand 17 and 18

    ReplyDelete
  6. In contemporary internet slang, "gooning" is a term for prolonged, obsessive masturbation, often involving "edging" (delaying orgasm) to achieve a trance-like state of intense focus and pleasure. This activity often involves consuming large amounts of specific adult media in a dedicated environment, sometimes referred to as a "goon cave".
    The practice is less about a quick physical release and more about extending the euphoric sensation and exploring one's own body and fantasies. Individuals who engage in it are called "gooners" (or "goonettes" for women) and are often described as becoming so absorbed that they are oblivious to the outside world, sometimes depicted with a "glazed-over" or "brain-dead" facial expression, which is fodder for online memes and jokes.
    While the term has a very specific, explicit meaning within certain online subcultures, it has also entered broader slang, where "gooning over something" can metaphorically mean being excessively or obsessively excited about any topic (e.g., a video game or a celebrity crush). The term carries some stigma and can be used as an insult, implying a kind of addiction or worthlessness, depending on the context.
    It is important to note that "goon" has other, unrelated meanings in English: a person hired to commit violence (a thug or henchman), a foolish person, or in Australia and the UK, cheap box wine or a supporter of the Arsenal football club, respectively. Therefore, context is crucial when encountering the term.

    ReplyDelete
  7. "Mogging" is a contemporary internet slang term, popular especially on social media platforms like TikTok, that means to outclass or dominate someone, primarily in terms of physical appearance. The term originated from "AMOG," an acronym for "alpha male of the group," in internet forums and was initially used in the context of bodybuilding and pickup artist culture to describe a man who was taller, more muscular, or otherwise physically superior to others.
    Over time, the meaning of "mogging" has expanded and is now often used more generally and humorously to describe one person outshining another in any aspect, such as confidence, intelligence, style, or professional achievement. For example, a person might say a celebrity "mogged" them in a photo because the celebrity is significantly more attractive, or a friend might jokingly say they are being "foodmogged" if another friend has much better food. While generally used in a lighthearted or self-deprecating manner on social media, the term's origins in niche, sometimes misogynistic, online communities mean that its use can sometimes be considered potentially insulting depending on the context.

    ReplyDelete
  8. sybau ts not tuff gng bruh abcdefghijklmnopqrstuvwxyz

    ReplyDelete
  9. path wala pls pin me

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post