Last active
September 19, 2022 19:57
-
-
Save saaeiddev/7e91bb5efb5f8162827fe45582b9854c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List3 = ["amir", 3, 6, 9, True] | |
| List4 = [2.2 , 3.2] | |
| Number = int(input("please enter the number : ")) | |
| if Number > 10: | |
| List3.append(Number) | |
| print(List3) | |
| elif Number < 10: | |
| for item in List3: | |
| List3.remove(item) | |
| print(List3) | |
| else: | |
| print("Not Bigger") | |
| Number2 = float(input("please enter a float numeric data type : ")) | |
| if Number2 > 6.9: | |
| List4.append(Number2) | |
| print(List4) | |
| elif Number2 < 6.9: | |
| for mem in List4: | |
| List4.append(1.2) | |
| print(List4) | |
| else: | |
| for mem in List4: | |
| print(mem , mem + 1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment