Python Forum
Why is this an error? (string and integer)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is this an error? (string and integer)
#5
I like TypeErrors.

With JavaScript you can do this:
Array(16).join("wat" - 1) + " Batman!";
Output:
"NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!"
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 is this an error? (string and integer) - by DeaD_EyE - Feb-05-2020, 08:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question about change hex string to integer sting in the list (python 2.7) lzfneu 1 2,539 May-24-2021, 08:48 AM
Last Post: bowlofred
  How to check if user entered string or integer or float?? prateek3 5 11,373 Dec-21-2019, 06:24 PM
Last Post: DreamingInsanity
  Beginner at Python. Trying to count certain integer from random string of code kiaspelleditwrong 3 2,431 Oct-14-2019, 10:40 AM
Last Post: perfringo
  Error when entering letter/character instead of number/integer helplessnoobb 2 7,091 Jun-22-2019, 07:15 AM
Last Post: ThomasL
  Mixed string,Integer input variable issue maderdash 2 2,764 Nov-06-2018, 09:46 AM
Last Post: snippsat
  string with integer variable within Andy1845c 9 4,955 Mar-12-2018, 10:28 PM
Last Post: Larz60+
  Convert integer to string Maigol 5 5,543 Mar-05-2018, 10:25 PM
Last Post: python_master89
  cannot convert float infinity to integer error despite rounding off floats Afterdarkreader 3 15,227 Dec-15-2017, 02:01 AM
Last Post: micseydel
  why does integer input give error invalid literal for int() PyPhanman 2 6,205 Apr-27-2017, 05:32 AM
Last Post: ndc85430
  Error "an integer is required" in getpass.getuser(). Nirelg 5 5,455 Mar-20-2017, 04:19 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

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