Ok - cool - I've made the changes you've suggested. Now I'm getting another error.
My code for students: I've tried changing 'students' with 'student' and either way I get this error. I am using PyCharm and it has a light bulb that suggests 'renaming the element'. What does that mean?:
My code for students: I've tried changing 'students' with 'student' and either way I get this error. I am using PyCharm and it has a light bulb that suggests 'renaming the element'. What does that mean?:
class students: def __init__ (self, name, major, GPA, is_on_probation): self.name = name self.major = major self.GPA = GPA self.is_on_probation = is_on_probationMy code for App. Here, I've tried naming everything to student (except for the file name). Here I get a light bulb suggesting I 'convert to import students'. Which caused another error so I switched it back. On another note, when I change 'from Students import Students' to 'from Students import student' the whole line became grey. Is that the way it should be?
from Students import Students student1 = Students("Jim", "Business", 3.1, False) print(student1)
Error:C:\Python365\python.exe F:/USERS/Tonya/Python/Draft/App.py
Traceback (most recent call last):
File "F:/USERS/Tonya/Python/Draft/App.py", line 1, in <module>
from Students import Students
ImportError: cannot import name 'Students'
Process finished with exit code 1
I really appreciate your help! Thank you!