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

input:The cat is on the mat.

output:
ehT tac si no eht .tamehT tac si no eht .tam


using split reverse the sentence without changing the order.


the first line contains an integer n denoting the number of rows in A. the next line contains an integer ,M, denoting the number of columns in A. Each line i of the N subsequent line (where 0<=i< N) comtains M space seperated integers each :describing the ith row of A

Write a program that takes a string as input and prints “Binary Number” if the string contains only 0s or 1s. Otherwise, print “Not a Binary Number”.


Question 2:

# Three Dice game


# import library

import random


# roll three dice and store the results in the variables


# Add the points from both dice


# display message to guide user on how to use this program

# If total is more than 9, it is 'big'. Else, it is 'small'


# prompt user to guess small or big.

# convert the user input to lower case


# check if the user input is valid

# if the answer was not either small or big,

# shows invalid guess message


# check the value of total

# if it is greater than 9, assign the correct answer as big

# else assign the answer as small


ABC Banking maintains a record of their clients accounts in a text file named "custBalances.txt" using the following format:


accNo,Lastname,Firstname,PIN,balance


ABC clients would like to have a means to know their balances conveniently.


Your task is to write a program that will access the data of the customer from the text file by supplying their account number and PIN code. Given a valid account number and PIN, program must display the customer information.


Your program must use the following function in a separate python file

  • getInput function which will ask for the account number and PIN of the customer. Function must validate account No and PIN.
  • viewCustomerInfo function which will return the customer Info .


Input


1. data

Output


Enter·account·number:·356662421
Account·does·not·exist.
Enter·account·number:·356662420
Enter·PIN:·1676
Account·No.:·356662420
Customer·Name:·Branden·Rivers
Balance:·PHP·49,316.00

Enter·account·number:·X
Good·Bye!

Enter·account·number:·X
Good·Bye!




Your college has a logging system for students internet activities. Daly logs 1000 of entries and stored in internet file as 12 lines. One day  the IT administrator want to analyse for recent activities done by students, so he needs to access log entries from bottom first. Write a python function file-end(file-name, n) which accepts file name, number of lines it will read from last and return them in string as shown in example. Also, write the exception handling code to show the proper message. Also, write the exception handling code to show the proper message. Do not use input function and give input values in fixed form.


Write a python program that splits a given string on a given split character. The first input is a String and the second input is the character that will be used to split the first String.


Write a python program that splits a given string on a given split character. The first input is a String and the second input is the character that will be used to split the first String.

[You cannot use the built-in split function for this task]


Sample Input 1:

This-is-CSE110

-

Sample Output 1:

This

is

CSE110


Write a Python program that takes a String as input from the user, removes the characters at even index and prints the resulting String in uppercase without using the built-in function upper().


Sample Input 1:

String

Sample Output 1:

TIG


 Filter out movies which are released in more than 1 languages using movies dataset


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS