Make a program that asks for input from the user, apply eval to this input, and print out the type of the resulting object and its value. Test the program by providing five types of input: an integer, a real number, a complex number, a list, and a tuple.


Answer 1


x = input("Input a number ")


print ("Type is:",type(x))

#Taking an float input

y = input("Input a number ")


print ("Type is:",type(y))

#Taking an complex input

z = complex(input("Input a number "))


print ("Type is:",type(z))

#Taking an List input

L_num = raw_input().split(",")


print ("Type is:",type(L_num))

#Taking an tuple input.

T_num = raw_input().split(",")


print ("Type is:",type(T_num))


Related Questions

. One of the vulnerabilities the Morris worm used was a networking service called finger. The purpose of the finger service is to:A. report which device drivers a computer usesB. determine which ports are open on a computerC. report the status of individual computer usersD. determine which operating system is running on a computer
What is a software? 2 sentences please, I'll mark u as brailiest
In confirmatory visualization Group of answer choices Users expect to see a certain pattern in the data Users confirm the quality of data visualization Users don't know what they are looking for Users typically look for anomaly in the data
Which vendor did IBM select to create the operating system for the IBM PC?
This assignment deals with Logical Equivalences. Review section 1.7 of the text before completing the assignment. The assignment may be handed in twice before it is graded. Consider the statements in the left column of the tables below. Translate each into a propositional statement. In the box below, indicate which two statements are logically equivalent. The gray shaded box is the Equation editor that should be used to enter the propositional expression.Question 1Statement ReasonWhenever there is a puppy in the house, I feel happyIf I am happy, then there is a puppy in the houseIf there is not a puppy in the house, then I am not happy.If I am not happy, then there is no puppy in the houseQuestion 2Statement ReasonIf I am in school today, then I am in CSC231 classIf I am not in school today, then I am not civics classIf I am not in CSC231 class, then I am not in school todayIf I am in CSC231 class, then I am in school today

In ____________, a large address block could be divided into several contiguous groups and each group be assigned to smaller networks.


Write the answers so we can answer your question

Employee names are stored using a maximum of 50 characters. This information is an example of which of the following?Meta-data

Record instance

Data model

Data retrieval


Answer: Data model

Explanation: Data model is the arrangement of the information in the form of table structure to maintain it in the form of database.They help in the keeping the entities in the sequence and can be tracked when required.Example- vendors records,customer record etc.

Other options are incorrect because the data retrieval is the regaining of the data from database, record instance is the parts of the database records  and meta data give knowledge about other data.

Choose the missing term





If this is python, you'll have to import the time module.

In a company you are in charge of system maintainance. Justify with 5 reasons why your role is key‚Äč



As u are the in charge of system maintainance u have to maintain safety and security to the the system maintainance is a very big role and u can say it is the key to ur company or to ur work.

Should I get hollow knight, hyper light drifter, Celeste, or stardew valley for switch


Ooh, very tough question. I've played both Celeste, and Hollow knight. So I cant say anything for the other two games.

Celeste and Hollow Knight are both platforming games, so that was something I was interested in. And both also have deep morals to learn and stories to enjoy. Celeste basically follows Madeline, who's had some emotional problems in the past as she's trying to climb a mountain. In this mountain, a part of her escapes and becomes a but of a antag.

I loved the background, and the characters in this game. But there were a lot of parts in the game that frustrated me and I got very close to just all-out giving up on the game. I still loved it though.

But don't even get me started on Hollow Knight. LIKE OH My GOD, I am obsessed with Hollow Knight and its beauty! I have almost every piece of merchandise, every plush, every t-shirt, charm, sticker, pins, and all the DLC packs. This game is an absolute masterpiece. I cant say anything without giving off the background and lore behind the game. and I'll be honest, there's been a couple of times where I was so touched with the game, that I just started crying. There's lovable characters like Hornet, our little Ghost, Myla (oml rip Myla you beautiful baby), and of course laughable Zote. Its so beautiful. The art is stunning, the animation is so clean. And if you do end up getting Hollow Knight, then your going to be even more excited because Team Cherry is actually in the works of creating the sequel (or prequel) of Hollow Knight, which is Hollow Knight ; Silksong! Definitely go and watch the Nintendo trailer for that game! I've been so excited about it for months and Ive been watching the trailer almost every day.

Anyway, sorry this is so long. But i'm going to go with my gut and say Hollow Knight. Its beautiful, amazing, and overall just..perfect.


hollow knight is pretty good


Factory Design Pattern Assignment This assignment will give you practice in using the Factory/Abstract Factory Design Pattern. You are going to create a Terraforming program. What does terraform mean



Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.