Next, describe at least three additional Python experiments that you tried while learning Chapter 1. Show the Python inputs and their outputs, and explain what you learned from the results of each example. v
Compare the two strings is equal or not....
The "*" and "?" Can treated as a replace for characters
?=is used as replace for 1 character
* = It can be as replace for 1 to length of the character and can also used as a empty string
1st question:
3
Maggi Ma*i
Maggi Ma?gi
Maggi M*?
Answer:
True
True
True
2nd question:
Tree tr*
Plant Pl**
Dance D*ance
Answer:
False
True
True
Write a programe to check the overlapping of one string's suffix with the prefix of another string
Early versions of UNIX were available only with a command‐driven interface. In more
recent years, graphical user interfaces became popular.
Explain why these GUIs made an impact on the popularity of this operating system. For 10marks
Create a program that countsand displaysthe odd and even numbers among the ten(10)input values.Array Requirements:Use 3separate arraysforteninput values, evenand odd num
If you are trying to print a string, what happens if you leave out one of the quotation marks or both and why?
Create
a
program that will count and display the odd and even numbers among the
ten(10)
input
values
using a two
dimensional array.
Being a Purchase officer for Hyper Star, company has assigned a task to the new electronics head, to purchase some items cheaper than before. He purchased some items for the company on the reduced price that is 15% less than the given purchase price. [15% means (^ 15/100) or (*0.15)]
How much total amount Hyper Star spent for the purchase of all these items, according to the new purchase prices and keep it in mind you have to add the transportation cost charged by every supplier.
How much total amount Hyper Star has collected after the sale of all the items. What is the amount Hyper Star has made as profit?
You have to find out that after selling these items how much money they have made through this deal. For every item, you have to ask Hyper Star about the quantity of every item ordered. Every supplier charges 5000 rupees as the transportation cost for their one time delivery to Hyper Star. [Hyper Star has to at least order 3 of every item in the list]
Using the following chart
Sales
Commission
ratio
10%
15%
Less than 10000$
Greater than or equal
10000$ and less than
15000$
Greater than or equal 15000$
20%
Commission = sale * commission ratio
Sample Run:
enter the amount of your sales:
your commission is 1912.5