Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improvements?
#2
Yes, but if it's for homework you should probably just leave it as-is. Otherwise it'll look like you just copied code from the internet :p

That said, you can remove line 47 entirely. You already set "words" before the while loop, so setting it repeatedly within the while loop is not necessary. It doesn't hurt anything, it's just not needed.
Reply


Messages In This Thread
Improvements? - by tahmid909 - Nov-14-2016, 06:51 PM
RE: Improvements? - by nilamo - Nov-14-2016, 08:36 PM
RE: Improvements? - by buran - Nov-14-2016, 09:22 PM
RE: Improvements? - by sparkz_alot - Nov-14-2016, 09:26 PM

Forum Jump:

User Panel Messages

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