+ 2
In which order should I do courses for data science?
I mean where to start learning data science? What should be done first like learning python maybe? Then what next?
11 Respostas
+ 4
According to my knowledge, you need these skills
- Mathematics (Calculas, Linear Algebra, Statistics etc)
- Knowledge of Programming, you can start with Python or R
- Knowledge of RDBMS
And many are there, you will get more information in Google, just search. RoadMap for being a Data Scientist! Hence it's the trending topic, you'll get many websites!
Happy learning :)
+ 3
Jenna Yeah, you started one question then switched to another topic, new question for new topic is more convenient.
In your code I don't see any check for letter occurance. You just create empty dict, zeroed by letter count and then increased value by 1 for all elements in dict đ§ Generally you should walk through all letters and increase value if it coccured previously.
Tip: look how I solved it: https://code.sololearn.com/c0q2ugWSXsAO/?ref=app
+ 2
Thank you for the infođđ„ł
+ 2
No there is no particular output for other test cases. Output must be strict as said in task for all cases. Maybe your code differently treats some other inputs. You can share your attempt to figure out đ
+ 2
Jenna move your code question in new question, so community will help you
+ 2
Ohhh... I just came across the fact that... Test cases were all passed and a few of them were hidden and not wrong...
I thought they were wrong that is why not shownđ
Sorry I should have mentioned it...
But thank you... This is definitely a better way to do it... đ
I learned something new... Yayyyđ„łđ„ł
+ 2
Glad to help you and for you đnever give up!
+ 1
Thank you Ilyasđđ„ł...
I am doing intermediate python right now...
And whenever I do project Or code coach questions...
I could only clear a few test cases and not all...
Is there a way to know what is remaining? Or maybe we have to output something in particular test cases?
e. g. For empty string we output "No output" Like that?
+ 1
LETTER COUNTER-->
Given a string as input, you need to output how many times each letter appears in the string.
You decide to store the data in a dictionary, with the letters as the keys, and the corresponding counts as the values.
Create a program to take a string as input and output a dictionary, which represents the letter count.
Sample Input
hello
Sample Output
{'h': 1, 'e': 1, 'l': 2, 'o': 1}
MY CODE-->
text = input()
dict = {}
#your code goes here
for i in text:
dict[i] = 0
for i in text:
dict[i] += 1
print(dict)
It works good for "awesome" And "incomprehensibility" But I don't know other two test cases!
+ 1
Ohh like thatđ