Acompany is transmitting its data to
another server. To secure the data against
malicious activity, they plan to reverse the
data before transmitting. They want to
know the number of data characters that
do not change position even after the data
stream is reversed The network
administrator has been tasked with
ensuring the smooth transmission of the
data.
Write an algorithm for the network
administrator to help him find the number
of data characters that do not change
position even after the data stream is
reversed.
Input
The input consists of a string dataStream,
representing the data to be transmitted
through the network (N)
Output
Print an integer representing the number
of data characters that do not change
position even after the data stream is
reversed.
Answers
Answer:
sorry I didn't respond I will say in comment
Answer:
SHL Question def-unaffectedChar(dataStream) :- # - Write your code.here. Code saved -return The current selected programming language is Python3. We emphasize the submission of a fully working code over partially correct but efficient code. Use of certain header files are restricted. Once submitted, you cannot review this problem again. You can use print to debug your code. The print may not work in case of syntax/runtime error. The version of Python being used is 3.5.2 Goss S5 ESLEE ce a surk 19 - def.main(): #input for dataStream- dataStream - str(input()- -result- unaffectedChar(dataStream)- print(result) 17 18 - if: name main":- 19 main(9 I A company is transmitting its data to another server. To secure the data against malicious activity, they plan to reverse the data before transmitting. They want to know the number of data characters that do not change position even after the data stream is reversed. The network administrator has been tasked with ensuring the smooth transmission of the data. Write an algorithm for the network administrator to help him find the number of data characters that do not change position even after the data stream is reversed. Input The input consists of a string dataStream, representing the data to be transmitted through the network (N) Test Cases & Output C To baro tocerchi i SHL. Question The current selected programming language is Python3. We emphasize the submission of a fully working code over partially correct but efficient code. Use of certain header files are restricted. Once submitted, you cannot review this problem again. You can use print to debug your code. The print may not work in case of syntax/runtime error. The version of Python being used is 3.5.2 def.unaffectedChar(dataStream): 6 #.Write your code-here- 2 8 return 9 10 - def.main() :- 11 Hinput for dataStream 12 dataStream - str(input())- 13 14 15 -result- unaffectedChar(dataStream)- 16 -print (result) 17 18 - if name main":- 19 main()9 I A company is transmitting its data to another server. To secure the data against malicious activity, they plan to reverse the data before transmitting. They want to know the number of data characters that do not change position even after the data stream is reversed. The network administrator has been tasked with ensuring the smooth transmission of the data. Write an algorithm for the network administrator to help him find the number of data characters that do not change position even after the data stream is reversed. 1 Input The input consists of a string dataStream, representing the data to be transmitted through the network (N). Test Cases & Output Question string dataStream, representing the data to be transmitted through the network (N). def-unaffectedChar(dataStream) :- #-Write-your-code-here- 8 -return- 10 def.main(): - 11 #input-for-dataStream - 12 dataStream - str(input)- Output Print an integer representing the number of data characters that do not change position even after the data stream is reversed. If no such character is found or the input string is empty then print 0. 14 15