Okay in Python programming to get input from the user, I can do something like this input. I say input okay I can remove these. Can I can I see a option on the menu I will see I see. User selector for input. Okay. I can do something like I say he is a selector equal equal to, let's say, one kind of do something And how's he?
He was a Quaker and do something else. Okay, how's he is uh a quick look at how to do something else. And he uses allow for anybody else. Okay. So user selected equal equal. Why YK?
Let me see. Let me see that green and run the code. Hey Josie I know something I guess he is also that he won. Okay? Do something that is can I say run the code okay use a employ for one. Okay they print one can mec use this as a sample one thank you I bought two full tree Can I pull for can I run a code?
So I select I see one okay goes to one and four. I will have to change something so input. Why even tell me? Okay, let's assume I return the string story. So I have to say, changes to the sea in Asia, or maybe I change this to three. Okay, then I'll run the program again.
He one okay he printed one and then come to here okay. So, this is correct correct. I will say Cora Bolinas question okay. So, how do I put in the function okay. I say d phi and a B i can do something like a result equals a fast D and I cannot be please is user K can substructure multiplication division here will be subtraction Be multiplication and you know be on a team TV show okay hadisha subtraction multiplication okay based on just know if you guys hate debugging this function have to be in front of se here this function Like the pre orders function, we have to put them in front of all the costs before these functions are being called okay. So eventually it was a solid quarter one guy is addition that I can do something is also a typo now who number was number four first number.
Oh, maybe please enter first number. Okay and I will also put in the second one base and second number Okay, they know Cody's idea addition. Okay on number one and number two, this input as we just try, this input will return us a string data type. So I have to convert these are number one to let's say, integer float. If I want Jesse McCoy I have to convert this to float okay Okay I want to print something okay I want to print the result. So I have to create a result variable that is a result from this hydration method to be to be stored in this resolver.
So I pull result here, okay and do something like this. I will copy, paste. Okay. Ah option two is subtraction, subtraction. Okay option three is division option four is multiplication. Okay, then I can run these are cool.
Okay guys, so let us say hi addition. first number is one second number is two, so I get three. Okay, I run this code again. Yeah, so subtraction so first number is one second number is, again negative one Randy's cool gain. Okay, Taiwanese division. First number one second number two is 0.5 Rhonda cool game.
Nice. Multiplication was number is one second num plus two I get 2.0 okay