Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
programming homework
#4
The printing the shared positions is outside the if block. It will print all word_1 letters and their positions because it executes at every iteration.

if range(l_word_1) == range(l_word_2) could be like this if l_word_1 == l_word_2
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
programming homework - by propal - May-10-2018, 12:39 PM
RE: programming homework - by j.crater - May-10-2018, 12:43 PM
RE: programming homework - by micseydel - May-10-2018, 11:37 PM
RE: programming homework - by wavic - May-11-2018, 05:39 AM
RE: programming homework - by propal - May-11-2018, 07:16 AM
RE: programming homework - by wavic - May-11-2018, 07:24 AM
RE: programming homework - by cryomick - May-16-2018, 11:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Verilog HDL Programming to Python Programming? noobcoder 1 3,053 Jul-18-2019, 09:28 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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