I have so much respect to all of you who coded before using the implementation of AI. I am trying to learn right now and I have no idea what i am doing or reading. The most i can do is print text and asking a user for input from their im lost in the sauce. Thank you to all the coders who worked on AI so I can learn that way.
Hi everyone,
I'm currently in Data Engineering stream training at Accenture, and they've asked us to learn NumPy and Pandas through Udacity.I was wondering if that's enough to build a solid foundation for working on real-world projects, or if I should be learning from other resources as well.If you've used NumPy and Pandas in your job, what resources helped you the most? I'm looking for courses, YouTube channels, books, or project-based learning that will help me become comfortable using them in real projects.
I made a function for determining price of an item in the list. I made it so I get the price for an item in the list, but if the item IS NOT in the list, I programmed it to return none.
The problem is that when I run the program, it gives me a SyntaxError, and "return outside function"
What does this mean, and how do I fix it?
Thanks!
prices = {"apple": 1.50, "bread": 2.75}
def get_price(prices, item):
return prices[item]
try:
get_price(prices, "apple")
except KeyError:
return None