51384/how-you-write-loop-python-with-conditional-statements-python
Lets say we have a problem statement to check if the number is greater, smaller or less than 5.
x = int (input('enter a number')) while x > 0 : if x == 5: print("equall") elif x > 5: print("greater") else: print(" smaller")
Can you give an example? READ MORE
''' This is a multiline comment. I ...READ MORE
The example below creates a background thread ...READ MORE
Use random.uniform(a, b): Returns a random floating point ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
Usually the execution moves out of the ...READ MORE
Follow the following steps: Open the settings Open Project ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.