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

Set the variable called greeting to some greeting, e.g. "hello".

Set the variable called name to some name, e.g. "John".

Then set the variable called greet_name that that concatenates greeting , name , and a space " " between them.


Define a variable named is_having_fun and set it to a Boolean value


Define a variable named high_score and set it equal to any int


 Define a variable named price and set it equal to any float


Define a variable named city and set it equal to any string


Call your function from example 1 three timesWith deferent kind of argument:a value,a variableAnd an expression. identify which kind of argument is which?

5. Groupings


by CodeChum Admin




Instructions:



1. Create a variable that accepts a positive odd integer.



2. Create an empty list. Then, using loops, add random integer values into the list one by one. The number of values to be stored is dependent on the inputted odd integer on the first instruction.



3. Reverse the order of the list. Then, print out the list's new order in this manner:



4. [first-half values]-[middle value]-[second-half values], just like that of the sample output. Make use of list slicing that you’ve learned from the past lessons to easily achieve this segment.




Input



The first line contains an odd positive integer.


The next lines contains an integer.



5


1


3


4


5


2




Output



A line containing a list.



[2,5]-[4]-[3,1]

write a program that takes string as an input and return the product of all individual digit present in string ,return 0


Write the definition of a class Counter containing:

An instance variable named counter of type int

An instance variable named limit of type int.

A constructor that takes two int arguments and assigns the first one to counter and the second one to limit

A method named increment. It does not take parameters or return a value; if the instance variable counter is less than limit, increment just adds one to the instance variable counter.

A method named decrement. It also does not take parameters or return a value; if counter is greater than zero, it just subtracts one from the counter.

A method named get_value that returns the value of the instance variable counter.


Pattern


Input

The first line input contains an Integer(N).


Explanation


Given N = 2 and T = 3

The first line having N spaces

and the last line having no spaces.


sample Input 1

2 2

sample Output 1

**

**


Sample Input 2

2 3

sample Output 2

**

**

**


LATEST TUTORIALS
APPROVED BY CLIENTS