Answer:
Explanation:
The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.
import re
phrase = input("Enter word or phrase: ")
phrase = re.sub("[,'\s]", '', phrase).lower()
reverse = phrase[::-1]
if phrase == reverse:
print("This word/phrase is a palindrome")
else:
print("This word/phrase is NOT a palindrome")
Answer:humans need energy to complete the regular body requirements to digest our food,to breathe,to move,to run,to travel and continue the metabolism of our regular life.
Explanation:energy is essential to life and all living thing organisms.
Hello there,
How to drive more website traffic?
Answer: Advertise
Answer:
RainbowTables
Explanation:
RainbowTables is the best option when the cracker has limited time.
Here's my code for that, consider it under the WTFPL (http://www.wtfpl.net/). Here is a pastebin of the code, as to avoid text formatting. (Link: https://pastebin.com/S3BDGxqm Raw: https://pastebin.com/raw/S3BDGxqm)
package javaapplication6;
import java.util.Scanner;
public class JavaApplication6 {
public static void main(String[] args) {
Scanner myScanner = new Scanner(System.in);
boolean a;
int s;
System.out.println("Enter an int");
s = myScanner.nextInt();
a = hasEight(s);
System.out.println(a);
}
private static boolean hasEight(int s)
{
String str = String.valueOf(s);
return str.contains("8");
}
}