Python Forum
It seems like the overall Python syntax would be error prone
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It seems like the overall Python syntax would be error prone
#8
CynthiaMoore Wrote:Is as good (clear, readable) as something like

for i in range(10):
   statement
   statement
   statement
end i
We are cooler than Ruby people and don't need a end to understand Hand
# Ruby
nums = [1, 2, 3, 4, 5]
for i in nums do
  puts i
end 
# Python
nums = [1, 2, 3, 4, 5]
for i in nums:
    print(i)
CynthiaMoore likes this post
Reply


Messages In This Thread
RE: It seems like the overall Python syntax would be error prone - by snippsat - Apr-01-2020, 09:42 PM

Forum Jump:

User Panel Messages

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