Python Forum
Trouble with "Weather Program" Assignment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with "Weather Program" Assignment
#5
(Aug-05-2018, 05:32 PM)sarah_mb_sues Wrote: I included the code line itself because I don't have it in the code from the original post

---------------------------------------------------------------------------
Traceback (most recent call last)

----> 1 city_temp = mean_temp.readlines().split(",")
2
3 city_temp

AttributeError: 'list' object has no attribute 'split'

Hey man Dance , please post the code with your attempt at the while loop still intact. The error you posted is suggesting that a portion of the data your looping over is not the data type you think it is.
Reply


Messages In This Thread
RE: Trouble with "Weather Program" Assignment - by Vysero - Aug-09-2018, 09:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with a turtle movement assignment. JosephSondgeroth 1 1,423 Jan-27-2022, 11:56 PM
Last Post: JosephSondgeroth
  Displaying selected information from XML file in the Spyder console(weather forecast) JohnN_pl 6 3,470 Jun-20-2020, 01:36 PM
Last Post: JohnN_pl
  Applied Data Science with Python - homework 2.2 (Weather plotting) eyavuz21 4 3,413 Jun-03-2020, 07:09 PM
Last Post: eyavuz21
  Trouble with Loops in lab assignment jonstryder 6 3,411 Jul-28-2019, 06:40 PM
Last Post: ThomasL
  How to hold a program in the turtle (Tic-Tac-Toe game assignment) kmchap 1 4,597 May-17-2018, 05:39 PM
Last Post: j.crater
  I'm having trouble with my assignment for creating a math quiz thewrongnarwhal 7 8,094 Nov-14-2016, 08:06 AM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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