Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

You are given N as input. Write a program to print the pattern of 2*N - 1 rows using an asterisk(*) as shown below. Note: There is a space after each asterisk * character.

 One string is a normal string and another string is a shuffled one. Find out whether the given strings are equal or not after shuffling. - Link

 


Given an integer num (1<n<100). Find a minimal divisor that is not equal to the given number and the sum is equal to the given number. Input: 9

Output: 18


Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following: How to format each dictionary item as a text string in the input file. How to covert each input string into a dictionary item. How to format each item of your inverted dictionary as a text string in the output file. Create an input file with your original three-or-more items and add at least three new items, for a total of at least six items. Include the following in your Learning Journal submission: The input file for your original dictionary (with at least six items). The Python program to read from a file, invert the dictionary, and write to a different file. The output file for your inverted dictionary. A description of how you chose to encode the original dictionary and the inverted dictionary in text files.
Describe how catching exceptions can help with file errors. Write three Python examples that actually generate file errors on your computer and catch the errors with try: except: blocks. Include the code and output for each example in your post. Describe how you might deal with each error if you were writing a large production program. These descriptions should be general ideas in English, not actual Python code.
Write a python program to implement hash table with quadratic probing 1) insert item into hash table 2) remove item into hash table 3) check the size of hash table 4) Display Hash table

in a school, the students are divided into two categories based on their rank. students whose rank is less than 10 are considered as honor student and all others are considered as normal student. based on the rank, find to which category a student belongs


6. Find out the number of palindrome strings in a given string - Link


5. Find the minimum positive integer such that it is divisible by A and the sum of its digits is equal to B - Link 



I want you to make an array of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, backwards, on separate lines.


Care to do that for me?


Input

The first line contains the size of the array.

The next line contains the integers separated by a space.

5
1·64·32·2·11

Output

Multiple lines containing integers on each.

11
2
32
64
1





LATEST TUTORIALS
APPROVED BY CLIENTS