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

Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything.


write a program to print the ticket numbers of N people in the order in which they will be allowed to enter the garden


Provide your own examples of the following using Python lists. Create your own examples. 

  • Nested lists 
  • The “*” operator 
  • List slices 
  • The “+=” operator 
  • A list filter 
  • A list operation that is legal but does the "wrong" thing, not what the programmer expects 

Provide the Python code and output for your program and all your examples. 


Write a Python program that does the following. 

  • Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything. Just make it up yourself. 
  • Turn the string into a list of words using split


  • Delete three words from the list, but delete each one using a different kind of Python operation. 


  • Sort the list. 


  • Add new words to the list (three or more) using three different kinds of Python operation. 

  • Turn the list of words back into a single string using join


  • Print the string. 

Create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of argumentsparametersobjects, and references


Describe the relationship between objectsreferences, and aliasing. Again, create your own examples with Python lists


Describe the difference between objects and values using the terms “equivalent” and “identical”. Illustrate the difference using your own examples with Python lists and the “is” operator.


input :- The input line is a single line containing a positive integer N


output :- The output should be a single line containing the space separated prime factors in ascending order


if input1 is : 20


then output1 is: 2 5


if input 2 is : 45

then output2 is :- 3 5


input :- The input is a single line containing the word


output :- The output should be a single line containing space-separated characters


if input 1 is :- MATHEMATICS


then output 1 is :- M A T H E I C S


if input 2 is :- banana


then output 2 is :- b a n


input : the first line of input contains seperated integers


Outpt : The output should be a single line containing space-seperated integers with odd-digit for each number


if input 1 is :- 21 503 256 550 86 979 281


if output 1 is :- 12 503 562 550 86 979 128


if input 2 is :- 2001 463 6219 669 473 1006 77734 110 20511


if output 2 is :- 1002 346 1962 966 734 1006 77734 110 51120


LATEST TUTORIALS
APPROVED BY CLIENTS