Answer:
Explanation:
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++) {
if (str [i] != str [length – 1 – i]) {
return false;
}
}
cout << str << "is a palindrome";
return true;
}
steve is happy today but he wasn't yesterday
The enter key is used when we want to go directly to the next line while writing whereas through word wrap the cursor automatically shifts to the next line when the word limit for a particular line is exceeded
The two Python data structures that are already thread-safe are list and tuples.
<h3>What are the data structures in Python?</h3>
Python is known to give room for its users to make their own Data Structures.
It helps one to be able to have total hold or control over their work or output functionality. Some key Data Structures are Stack, Queue, and others.
Learn more about Python from
brainly.com/question/26497128
#SJ1
Answer:-
(10111.001)₂
Explanation:
To convert a decimal number to a binary number we have to constantly divide the decimal number by 2 till the decimal number becomes zero and the binary number is writing the remainders in reverse order of obtaining them on each division.
Hence the binary number is 10111.001
To convert binary to hexa decimal we to make a group 4 binary bits starting from the decimal and moving outwards if the last group is not of 4 then add respective 0's and write the corresponding hexa decimal number.
<u>0001</u> <u>0111</u> . <u>0010</u>
1 7 2
Hence the hexadecimal number is 17.2