Answer:
def getChar():
while True:
in1 = input('Enter first char: ')
try:
if len(in1) != 1:
raise
else:
in2 = input('Enter second char: ')
if len(in2) != 1:
raise
else:
break
except:
print('Enter just one character')
return in1, in2
def chars2string(in1,in2):
print(in1*5 + in2*5)
def main():
ls = getChar()
in1 = ls[0]
in2 = ls[1]
chars2string(in1, in2)
if __name__ == '__main__':
main()
Explanation:
The programming language used is python 3.
The script first defines a function getChar and makes use of a while loop in combination with try and except blocks and IF statements, the code ensures that both inputs that are entered by the user after the prompt are 1 in length. i.e. Just one character. This function returns the two characters that were entered.
The second function that is defined is chars2string this function takes two arguments, It repeats each argument five times and returns a joined string.
Finally, the main function is defined and it calls the getChar function first, the values that are returned by this function is assigned to two variables, that is then passed on to the chars2string function. The main function is called and the Joined string is printed to the screen.
Answer:
convert the MP4 format file to the OGG format file
Explanation:
An OGG file is a compressed audio file of Ogg Vorbis that is used for holding audio data. It is a free and an open container file format which is maintained by Xiph.Org Foundation. OGG format file can multiplex independent streams of video, text, audio and meta data.
The OGG file has better sound quality and characteristics than a MP3 or MP4 files. The MP4 file format can be converted into OGG format file if the files are saved in different formats in the computer which can play only OGG format.
Answer:
D
Explanation:
A. Polarization is simple for most antennas to determine. It is only on the same level as the antenna components. A vertically polarised antenna (that is one with vertical elements) is better received and a horizontal antenna is equally provided with horizontally polarised signals.
B. The left-hand circular polarization is named if the electric chambers vector rotates counter-clockwise as far as they are from the antenna.
The right-hand circular polarisation is named as the electric field vector rotates counter-clockwise as far as it gets from the antenna.
It then goes without stating the polarisation on the right hand is orthogonal to the left.
C. signals of the same frequency can be transmitted together in an non-interfering manner as long as their polarizations are orthogonal to one another. This too a correct statement.