Python Forum
Why can't I force an int to be a string?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why can't I force an int to be a string?
#3
I want E to be string instead of a integer so that list1 can be used in zip otherwise I get:

File "C:/Users/c0unt3rpl4y/PycharmProjects/House/Challenges/Archive/Challenge 6.py", line 52, in <module>
list(list1)
TypeError: 'int' object is not iterable

That is with me trying to use the list command on list1.

If I remove that (turning list1 into a list) which was my other try I get:

output_dict=zip(list1, input_list)
TypeError: zip argument #1 must support iteration

Basically I need the result of E to become a string so that i can use it in zip later.
Reply


Messages In This Thread
Why can't I force an int to be a string? - by fad3r - Feb-13-2018, 10:46 PM
RE: Why can't I force an int to be a string? - by fad3r - Feb-13-2018, 11:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Brute force for CTF (easy one) JokerTux 1 2,367 Feb-18-2020, 08:05 PM
Last Post: JokerTux
  Brute force password breaker Truman 7 4,479 Jan-23-2019, 01:00 AM
Last Post: Truman
  brute force skriff 4 3,895 Sep-12-2017, 06:23 AM
Last Post: buran

Forum Jump:

User Panel Messages

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