write a function to add any number of numbers for Eg. add(1,2) add(1,2,3) add(1,2,3,4,5)
How to reverse a string in a given sentence. a. Example: Given string is “ Ram is learning in CCBP Intensive course”. Reverse the word “learning” in the above sentence
Write the java Program to reverse the letters present in the given string.
Write the java program that calculates maximum of the given two numbers.
Develop a simple calculator in java with full of operations.
Note: the program should take the input value from users and perform the activities like:
Accordingly, the operations in this program should have the above options so as to perform all computing activities.
Develop a simple calculator in java with full of operations.
Note: the program should take the input value from users and perform the activities like:
import numpy as np
def matrix(m,n):
list1 = []
list2 = []
for i in range(m*n):
inputs = int(input('Enter numbers on intended matrix here: '))
list1.append(inputs)
for i in range(m*n):
order_input = min(list1)
list1.remove(order_input)
list2.append(order_input)
matrix1 = np.array(list2)
matrix2 = matrix1.reshape(m,n)
print(matrix2)
matrix(2,3)
Recreate the pokemon table using Colum by column on the documentation:
Column by column
you can add data one column at a times as well. To do this you use the add_column method, which takes who arguments-a string which is the name for the field the column you are adding corresponds to, and a list or tuple which contains the column data:
x.add_column( "City name",
["Adelaide", "Brisbane", "Darwin", "Hobart", "Sydney", "Melbourne", "Perth", ])
x.add_column("Area", [ 1295,5905, 112, 1357, 2058, 1566, 5386])
x.add_column("Population", [ 1158259, 18557594, 120900, 205556, 4336374, 3306092, 1554769])
x.add_column("Annual Rainfall"[600.5, 1146.4, 1714.7, 619.5, 1214.8, 646.9,
869.4])