Skip to content

Conversation

@r1shavd
Copy link

@r1shavd r1shavd commented May 13, 2021

In this commit, we made the following changes :
. Added the main function and put the entire source code inside it.
2. Added the conditional statements for the proper calling of the main function + error handling too at that point of the script execution.
3. Also the error catching code by which now the user has the option to exit the script anytime by pressing the CTRL+C key combination.
4. Instead of directly calculating the output, we have created a one-liner function 'reverse' that takes in a string-type variable and returns its reverse. Thus, we pass the string parsed integer to the function and get the reverse of the integer back.

…ed docs and in-code comment lines

In this commit, we made the following changes :
. Added the main function and put the entire source code inside it.
2. Added the conditional statements for the proper calling of the main function + error handling too at that point of the script execution.
3. Also the error catching code by which now the user has the option to exit the script anytime by pressing the CTRL+C key combination.
4. Instead of directly calculating the output, we have created a one-liner function 'reverse' that takes in a string-type variable and returns its reverse. Thus, we pass the string parsed integer to the function and get the reverse of the integer back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant