Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with assignment
#1
Hi,

I want to make a nested indexing on heatingdata = [m,t1,t2,s].

When i Write: heatingdata = [m,t1,t2,s]
i=0
For i in range (list(heatingdata)):
  print(i)
it's says name 'm' is not defined. But the teacher has not defined the different letters for us, so how can I make a list on this?

Thanks
Reply


Messages In This Thread
Help with assignment - by dxfrelince - Feb-15-2019, 10:46 PM
RE: Help with assignment - by Larz60+ - Feb-16-2019, 12:35 AM
RE: Help with assignment - by dxfrelince - Feb-16-2019, 11:53 AM
RE: Help with assignment - by Larz60+ - Feb-16-2019, 12:38 PM
RE: Help with assignment - by dxfrelince - Feb-17-2019, 07:24 PM
RE: Help with assignment - by dxfrelince - Feb-18-2019, 11:56 AM
RE: Help with assignment - by perfringo - Feb-18-2019, 04:25 PM
RE: Help with assignment - by dxfrelince - Feb-18-2019, 09:16 PM

Forum Jump:

User Panel Messages

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