Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Iam new to Python Need Help
#2
(May-24-2018, 03:33 PM)hitesh222002 Wrote: f = open("C:/test/my_data.txt")
(May-24-2018, 03:33 PM)hitesh222002 Wrote: // my_data contains the following data :

Your data is in a file named my_data, but the program is reading my_data.txt. Those are not the same thing. There's no output, because there's no input.
Reply


Messages In This Thread
Iam new to Python Need Help - by hitesh222002 - May-24-2018, 03:33 PM
RE: Iam new to Python Need Help - by nilamo - May-24-2018, 08:07 PM
RE: Iam new to Python Need Help - by buran - May-25-2018, 06:06 AM

Forum Jump:

User Panel Messages

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