Various programming logic in various programming languages.
This repo helps to everyone understand the programming logic, syntax and how works in different languages.
Please follow the contribution guidelines. We consider following items in your program.
-
Write your own program by own way.
-
We expect new and intresting logic and program.
-
Should have Well documentations
-
Before raising pull request check alreay exisit or not in https://github.com/ViluppuramGLUG/ProgrammingLogic repo.
-
Each pull request have at least two or more programs are welcome.
-
Login with Github. (If you don't have account then register and login)
-
Login to Hacktoberfest using Github.
-
Fork this https://github.com/ViluppuramGLUG/ProgrammingLogic repository to your repository (username/ProgrammingLogic).
-
Choose your prefered langues in this repo.
-
Write any programming logic/interview questions program in any language or your prefered language. That should be useful and intresting.
-
Program filename should be valid, human readable and snake case format like (fibonacci_number.py) not like camel case (FibonacciNumber.py) except Java and Kotlin.
-
Program should be well document(example)
-
Commit and push it to your repo.
-
Click pull request in your repo after commit and push.
-
Ensure base repository:(ViluppuramGLUG/ProgrammingLogic) <- head repository: (username/ProgrammingLogic). then click create pull request button.
-
After that, Give valid title and message.
-
Click Create Pull Request button.
Ref more explanation : link
filename : ProgrammingLogic/python/palindrome_or_not.py link
"""Palindrom or not given string"""
# function which return reverse of a string
def isPalindrome(s):
return s == s[::-1]
# Getting string from user
s = input("Enter word: ")
ans = isPalindrome(s)
# Checking the given string same as reversed string then print "Yes". otherwise print "No"
if ans:
print("Yes")
else:
print("No")