Ram has a list containing 10 integers . you need to help him create a program with separate user defined function to perform the following operation based on this list
· Push the even number into stack
· Pop the content of the stack
· Display content of the stack
write a program to find the least common multiple of the given two numbers Mand N
Complete the following print and if statements by accessing the appropriate elements from my_list. Hint: Use the list indexing notation []. print('My favorite color is', ???) print('I have {} pet(s).'.format(???)) if ???: print("I have previous programming experience") else: print("I do not have previous programming experience")
Assign your name to the variable name.
Q2: Assign your age (real or fake) to the variable age.
Q3: Assign a boolean value to the variable has_android_phone.
Q4: Create a dictionary person with keys "Name", "Age", "HasAndroidPhone" and values using the variables defined above.
Q4b Use a for loop to display the type of each value stored against each key in person. (Optional)
Given a four digit number N as input write a program to print first and last digit of the number
Given a list of integers, write a program to print the count of all possible unique combinations of numbers whose sum is equal to k.
Input:
The first line of Input will contain space-separated Integer.
The second line of Input will contain an 8nteger,denoting K.
Sample Input:
2 4 6 1 3
Output:
3
• Using Php Script write a program that will compute the students average
• The user will input the following:
Name
Math
Science
English
• If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.”
Given an integer number N as input. Write a program to print the double triangular pattern of N lines using an asterisk(*) character as shown below.There is space after each asterisk character. using while loop
Anil is given a sentence as he tries to make a sentence special a sentence can be made special by swapping the character with high frequency with the character character has low frequency in the sentence help anil by transforming the sentence into a special sentence in python
swap most frequent letter with least given a sentence swap the occurences of the most frequent with the least frequent letter and vice-versa
note: consider upper & lower case letters as different .if there are multiple letters with the same frequencies choose the lower case letter that comes earliest in dictionary order O
input: Python is a programming language
o/p: Python is e progremming lenguega
input: Check your blood preeusre frequently
o/p: Check ybur olbbd preeusre frequently
1. Create a library of books in Python, with the following attributes.
(i) Title of book
(ii) Author of book
(iii) ISBN (International Standard Book Number)
(iv) Year of Publication.
(v) Book Classification (e.g. Fiction, Science, Art)