 Search in python | Sololearn: Learn to code for FREE!

+1

# Search in python

For the fellowing code: I wanna the i variable to search into equal var for a number (int) In the fellowing script... It gives me like 6 time of number list PS: the input be like : 2x + 6 def function(): print ("here is some equalize:") print(''' 1- Equalize from the second level ''') equalize= input("chose your equalizer : ") if equalize== "1": equal= input("write it down : ") n=0 l= len(equal) for i in equal: number=[0,1,2,3,4,5,6,7,8,9] if i == number: print (i) else: print("exit") function()

+4

Hard to understand. Please an example for input and output.

0

It is like Input: 26x + 9 Output: 26 x + 9

0

What does replace function do?

0

Can u help me out in my script?

0

I need someone to help me i get no friend for rn

0

Mohamed Amine Hammane Yeah sure, tell me what you want

0

Well basically imma making an 2nd level equalize solver script

0

The user input like 2x^2+3x+7

0

I devide these into a list (2,x2,3,x1,7) lis=a list=b list=c Delta=b**2-4(a*c)

0

A solver ... I think u get it..

-1

Mohamed Amine Hammane a=input().replace(" ","") [print(i) for i in a]

-1

Mohamed Amine Hammane It replaced spaces from the input