write a program that prompts the user for the size of an array. The program should then ask the user to enter the numbers into the array. The program should then sort the numbers is ascending order and displays the new sorted numbers
5 Display the following pattern using only 2 lines of code. Use only 1 for loop. This problem will require
the use of the multiplication operator (*) and the variable that keeps track of the number of loop
iterations.
Sample output: *
***
*****
*******
*********
***********
*************
Basic Looping Task:
Display sets of "*" based on the user's integer input (0-9).
Example:
Enter a number: 6
******
Write an if-else statement that compares the age variable with the value 65. If age is greater than or equal to 65, add 1 to senior_citizens. Otherwise, add 1 to non_seniors.
Create a function that will accept a person's name and age, address, birthdate, email, if he/she has a job, what is the job title, and put all those data in a dictionary.
Display the pattren
##
# #
# #
# #
# #
# #
Write a program that reads some integers between 1 to 100 and counts the occurance of each.
: Create a python function that will accept 7 numbers with decimal values and wont accept value if it isn't a float value. After accepting the values, determine the number with the highest values among the given, and then return that value for printing.
Number 2 present at index locatios 0,6,9, as the last occurrence, is at index 9. So the output should be 9.
Input: 2 4 5 6 7 8 2 4 5 2 3 8
9
Write an if-else statement for the following:
If userTickets is not equal to 6, execute awardPoints = 10. Else, execute awardPoints = userTickets.
Ex: If userTickets is 14, then awardPoints = 10.