Which one is a tuple and why? 1) a = 100 2) a = 100 3) a = ("tuple") 4) a = (100) #Python #Coding #Tuple
0
0
0
0
6
Pythonist 已轉發
10. Competitive Programming in Python 128 Algorithms to Develop Your Coding Skills 🎄 ia804600.us.archive.org/14/items/compe…
0
9
35
23
4千
In Python, a tuple is defined by the comma, not parentheses! 🚨 For example, `( 1 )` is not a tuple, but `( 1 , )` is a single-element tuple! t1 = ( 1 ) # This is an integer t2 = ( 1 , ) # This is a tuple! print(type(t1)) # <class 'int'>
0
0
0
0
7
United States 趨勢
- 1. #happybdayTYGA N/A
- 2. $SENS $0.70 Senseonics CGM N/A
- 3. $APDN $0.20 Applied DNA N/A
- 4. $LMT $450.50 Lockheed F-35 N/A
- 5. Peggy 34.6K posts
- 6. Sonic 06 2,937 posts
- 7. Comey 43.5K posts
- 8. Zeraora 17K posts
- 9. Berseria 5,590 posts
- 10. Stargate 3,793 posts
- 11. #ComunaONada 4,289 posts
- 12. Cory Mills 34.7K posts
- 13. Halligan 15.8K posts
- 14. Dearborn 395K posts
- 15. $NVDA 46.8K posts
- 16. Ryan Wedding 7,038 posts
- 17. Randy Jones 1,229 posts
- 18. Rick Hendrick 1,547 posts
- 19. Cooks 10.6K posts
- 20. #BoldandBeautiful N/A
Loading...
Something went wrong.
Something went wrong.