pridict output of the following
for x in range(5):
print (x)
Answers
Answered by
6
ɧɛƖƖơ ɱąɬɛ
Answer:
0
1
2
3
4
________________________
Explanation:
for x in range(5) [ ᴡɪʟʟ ᴄᴏɴsɪᴅᴇʀ Tʜᴇ ᴠᴀʟᴜᴇ ᴏF x Fʀᴏᴍ (0-4 ) ]
and,
print (x) [ ᴡɪʟʟ ᴘʀɪɴᴛ ᴀʟʟ ᴛʜᴇ ᴠᴀʟᴜᴇs ɪɴ sᴇᴘᴀʀᴀᴛᴇ ʟɪɴᴇs ]
________________________
ɴᴏᴛᴇ:
→ Fᴏʀ ᴄᴏᴅᴇ ᴡɪᴛʜᴏᴜᴛ sʏɴᴛᴀx ᴇʀʀᴏʀ ᴀɴᴅ ᴘʀᴏᴘᴇʀ ᴏᴜᴛᴘᴜᴛ ᴘʟᴇᴀsᴇ ᴄʜᴇᴄᴋ ᴛʜᴇ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛs
- Fɪʀsᴛ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴘʀᴏɢʀᴀᴍ
- sᴇᴄᴏɴᴅ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴏᴜᴛᴘᴜᴛ
________________________
ɧơ℘ɛ ıɬ ɧɛƖ℘ʂ ყơų ☺
Attachments:
Similar questions