Python Forum
Why do these codes give different answers?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why do these codes give different answers?
#2
for char in "Robert":
    print(char)
Output:
R o b e r t
The first element is the str R. What do you think will happen, if you return True?
pooyan89 likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: Why do these codes give different answers? - by DeaD_EyE - Dec-14-2020, 10:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help setting questions and answers in quiz game? yoyoitsjess 3 3,715 May-10-2018, 07:35 AM
Last Post: buran
  Just some second choice answers help please ajaY 6 5,200 Apr-07-2017, 08:25 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020