📚
Learn Python
  • Overview
  • Day 1
  • strings
  • Functions
  • Day 4
  • Day 5
  • Web Development: Flask
    • Installation
      • Virtual Environment
    • Configuration
      • Environment variable in Windows
    • SDLC
  • Python OOPs
    • Python Dunder
    • Page 1
  • Machine Learning
    • Deployment
  • Contributors
Powered by GitBook
On this page

Was this helpful?

strings

PreviousDay 1NextFunctions

Last updated 1 year ago

Was this helpful?

split vs rsplit Some websites having file upload feature, typically has limitation to certain file extensions. On the logic part (Backend) which handles file uploading functionality, if you use split, it would split at every occurance and it may be possible that the file uploaded is example.file.txt but if you use rsplit, it would split from right side, take only extension and compare it with allowed extensions

4KB
Day2.py
Day 2