This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// count-context.jsx | |
import {createContext, useState} from "react" | |
export const CountContext = createContext(null) | |
export default function CountContextProvider({children}){ | |
const [state, setState] = useState(0) | |
return <CountContext.Provider value={{state, setState}}> | |
{children} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
myInput = input("Enter your string please: \n"); | |
if(myInput.lower() == "exit"): | |
print("Exiting programm..............."); | |
break; | |
result = palindromeWord(myInput) | |
if result == True: | |
print(f'{myInput} is palindrome') | |
elif result == False: | |
print(f'{myInput} is not a palindrome') |