Create a function generateString(char, val) that returns a string with val number of char characters concatenated together. For example generateString('a', 7) will return aaaaaaa.
Write a program to convert a number entered by the user into its corresponding number in words. For example, if the number is 876, then the output should be ‘Eight Seven Six’
python coding for y, you will also display a “bar” of ‘X’ characters to represent the number. For example, the prime number 2 would be represented as “X 2”.