Write a program to reverse a string that is passed by the user.
pager code:
input 1:
abde
output:
12(i.e 1+2+4+5)
input 2:
XYZ:
outpu:75
Users should be able to easily search for books from index page and search for books to find their required book. Design and develop fully transactional console-based application which has the following functionalities.
Books: Facility to create information related each book in the bookstore. Input: BookNo (Primary Key), Title, SubCode, Author, Publisher
Books Chapters: Facility to create books chapter information. For every book available on the site has to have a clear view to read each chapter using books chapters view. Input: BookNo, ChapterNo, Title, startingPageno, EndingpageNo
Subjects: Facility to create subjects. Books available on the site should sub divided into different category which will help users to easily find required category books. Input: Subject Code, Name
Books Query: Direct search is needed to find books available on the site. Users must be able to search by bookNo, Title, Author.
Add/Edit/Delete Books: Facility should be provided add, edit, or delete information related to book.
Write a python program to calculate the average of five numbers passed by users using function.
Write a program to gets 10 numbers from the user and counts how many of those numbers are greater than 10.
write a program to print the product of given two numbers.
You can use a minus sign to make a negative number like -2. What happens for each of the following and why?
>>> 2++2
>>> 2--2
>>> 2+-2
>>> 2-+2
What happens if you have two values with no operator and a space in between them and why?
What role should unions play in this new world? Is there a risk that unionization speeds up automation?
Shivam is the youngest programmer in the world, he is just 12 years old. Shivam is learning programming and today he is writing his first program.
The task is very simple: given two integers A and B, write a program to add these two numbers and output it.