0

Taking combination of both character s ,integers and other things like(/,:,;)as input

I m thinking of eval But it doesn't work

28th Apr 2021, 1:44 PM
Keerthi goli
Keerthi goli - avatar
7 Respostas
0
Lots of ways to do it! Can we see your attempt?
28th Apr 2021, 2:03 PM
Slick
Slick - avatar
0
Can I take Com= eval(input()) Com a combination of strings ,integers and others
28th Apr 2021, 2:05 PM
Keerthi goli
Keerthi goli - avatar
0
if its an equation or python syntax code. try this: solution = eval(input("Enter an equation: ")) print(solution) #input 3 * 5 #output 15
28th Apr 2021, 2:08 PM
Slick
Slick - avatar
0
I want input as For example Https://wdvhkjvjk=yvnkj Like this
28th Apr 2021, 2:09 PM
Keerthi goli
Keerthi goli - avatar
0
And its supposed to do what with the web address?
28th Apr 2021, 2:10 PM
Slick
Slick - avatar
28th Apr 2021, 2:16 PM
Keerthi goli
Keerthi goli - avatar
0
Okay now i understand. Please read through and do the Regular Expression examples here: https://www.sololearn.com/learning/2475/
28th Apr 2021, 2:17 PM
Slick
Slick - avatar