https://365datascience.com/dwqa-answer/answer-for-problem-in-python-programming-2/ -
Hi Prafful,
in the example you’re referring to, we want to reverse a string:
So, we iterate over each ‘char’ (or character) in the string and we append it backwards using reverse string. That’s why we need the order char + reverse string.
If we had reverse_string + chart instead, we’d print back the exact same string we input, without reversing it.
Could you please make sure to include a link to the lecture your question is about? It would make it a lot easier to answer the questions, especially since you’re naming your variables differently.
Best,
Eli
#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy
No comments:
Post a Comment