Python Answers

Questions answered by Experts: 5 288

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

A data compression software utilizes various steps to compress a string of data. One of the steps involves finding the count of characters that are not repeated in the string. Write an algorithm for the software developer to find the count of characters that are not repeated in the string.

PyQT

I created a button Upload. I hope to have the function of clicking on the button will direct me to selecting my file which contains of images, bulk of images and copy them into another specific folder named "Upload"


Question 1: Create a program to generate a password length 12 6 random == "A-Z a-z" 4 --> digits 2 -- > special characters Expected Output: $ji12kt56yU#


Fibonacci sequence is defined with an integer n as,
F(n)=F(n-1)+F(n-2) for n ≥2,where F(0)=0,F(1)=1.
develop a Python program to compute F(n) for a given integer between 0 and 20.
Input: Output:
0≤n≤20 F(n)≤2 to the power32
Compute F(n) starting with n=2 and increment iteratively until the required value is obtained.
instructions-
Create a text file include the value ofn. The text file needs to saved in same folder
where the source file has been saved. The file name will be given as input through terminal.
Develop a function named“getNum"to read number n from file.
Develop a function named “show” to display the given value n and computed value
of F(n) on screen. (Expected output format Fibonacci(3) = 2)
Develop a function “saveFile” to write what was displayed in (3) above to a text
file named"result.txt”. This file should be in same folder where source file is.
program must call suitable functions to do the task.

You are given a side of a square as input. Write a program to find the perimeter and area of the square.

Input

The input is an integer representing the length of the side of the square.

Output

The first line of the output should contain area of the square, and the second line of the output should contain the perimeter of the square as per the format shown in the sample output.

Explanation

Given the length of the side is

2. As the area of square is

side*side and the perimeter of the square is 4*side.Then output should be


an ecommerce company plans to give their customers a discount for the new year. the discount will be calculated on the basis of the bill amount is the product of the sum of all odd digits and the sum of even digits of the customer's total bill. if no odd-even digit is represented in the bill amount then 0 will be returned?
write a python program to find averagne of given numbers
sample intput :1,2,3,4,5
sample output :3
Scenario

There once was a hat. The hat contained no rabbit, but a list of five

numbers: 1, 2, 3, 4, and

Your task is to

• write a line of code that prompts the user to replace the middle

number in the list with an integer number entered by the user

write a line of code that removes the last element from the list

(Step 2)

• write a line of code that prints the length of the existing list (Step 31.

Ready for this challenge?
IF/ELSE Control flow in Python to work out price of courier service from 4 choices
You need to design a program for a courier company to calculate the cost of sending a parcel.
Ask the user to enter the price of the package they would like to purchase.
Ask the user to enter the total distance of the delivery in kilometers.
Now, add on the delivery costs to get the final cost of the product. There are four categories to factor in when determining a parcel’s final cost, each with two options based on the customer’s delivery preferences. (Use an if else statement based on the choice they make)
Delivery via air ($0.36 per km) or via freight ($0.25 per km)
Full insurance ($50.00) or limited insurance ($25.00)
Gift option ($15.00) or not ($0.00)
Priority delivery ($100.00) or standard delivery ($20.00)
Write code to work out the total cost of the package based on the options selected in each category.

Can anyone help?
Python program to find value of bitcoin in rupees with daily update values
LATEST TUTORIALS
APPROVED BY CLIENTS