#๐ missing something here..
33 messages ยท Page 1 of 1 (latest)
@bitter imp
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
can you describe the expected logic?
from a glance it seems like you're trying to print all ratings 6 or above
I was hoping to get the the list to be printed out until it hit a value of less than 6
yes
!e
ratings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
for rating in ratings:
if rating < 6:
break
print(rating)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 9.5
003 | 10
004 | 8
005 | 7.5
yes i'm working a problem from coursera , i am suppose to use a while loop to get the output . i shold have mentioned that...
sounds like a badly formed exercise then because a while loop is not ideal here
but let me try
I appreicate any help.
!e
ratings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
i = 0
while ratings[i] >= 6 and i < len(ratings):
i += 1
print(rating)
!e
ratings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
i = 0
while ratings[i] >= 6 and i < len(ratings):
print(ratings[i])
i += 1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 10
002 | 9.5
003 | 10
004 | 8
005 | 7.5
I think i have asked you before but would you have any suggestions to where i could get affordable course work . It seems coursera is outdated...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
what are you trying to do?
I am trying to get to a point to where i can get hired as a junior data base admin. but my last entry in this chat was to see if that e! thing was how you bring up the resources.
I meant that !e you tried to use
gotcha haha
but I already typed that command and the bot responded
then you did the same and the bot gave the same answer
i'm new to discord so i'm just testing stuff out
ok
i appreciate your help , i feel stupid asking some of these quesoins
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.