Python Forum
I am getting an Error, and not sure why? My goal is to print out
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am getting an Error, and not sure why? My goal is to print out
#8
It should work may need to strip of new line.
with open('file6.txt') as f:
    for user in f:
        print(user.strip())
Output:
test-user ram kumar raj
What method is request.set_UserName(i) do you use Requests?
Reply


Messages In This Thread
RE: I am getting an Error, and not sure why? My goal is to print out - by snippsat - Dec-01-2019, 03:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I am getting a valueError. And not sure why? My goal is to visualize the correlation ReadytoCode 0 600 Dec-11-2023, 05:33 AM
Last Post: ReadytoCode
  Goal Seek tdutcher05 1 1,042 Nov-17-2023, 10:33 PM
Last Post: deanhystad
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 1,495 May-06-2022, 01:44 PM
Last Post: Larz60+
  Print Error DaveG 1 1,167 Apr-07-2022, 03:10 AM
Last Post: deanhystad
  Error with print and return commands TheDark_Knight 2 2,035 Jan-15-2020, 04:59 PM
Last Post: TheDark_Knight
  Error in print statment leodavinci1990 1 2,022 Jul-21-2019, 04:46 AM
Last Post: buran
  Why do i have invalid syntax on a line after print, i see no error ? iofhua 5 3,076 May-24-2019, 05:42 PM
Last Post: Yoriz
  Need help with print error newbiepy 2 2,179 Apr-22-2019, 08:00 PM
Last Post: Yoriz
  Turning Robot towards goal, comparison of angles SpaceTime 0 2,836 Jan-21-2019, 10:26 PM
Last Post: SpaceTime
  Attribute error print statement error jamshaid1997 1 2,559 Jan-20-2019, 04:02 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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