100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary python basics notes

Rating
-
Sold
-
Pages
2
Uploaded on
28-06-2025
Written in
2024/2025

just a over view on the language python, all students for programming can use it for any college

Institution
University Of California - Los Angeles
Module
CSE 101








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
University Of California - Los Angeles
Module
CSE 101

Document information

Uploaded on
June 28, 2025
Number of pages
2
Written in
2024/2025
Type
Summary

Subjects

Content preview

Python Basics - B.Tech CSE Notes (Part
2)
5. Strings in Python
Strings are sequences of Unicode characters. They are immutable, which means they cannot
be changed after creation.

Examples:
name = "Jainee"
print(name.upper()) # Output: JAINEE
print(name.lower()) # Output: jainee
print(name[0]) # Output: J

String Methods:
- upper(), lower()
- strip(), replace(), split()
- find(), index(), count()


6. List Operations
Lists are ordered, mutable collections. They can hold different data types.

Example:
fruits = ["apple", "banana", "cherry"]
fruits.append("mango")
fruits.remove("banana")
print(fruits) # Output: ['apple', 'cherry', 'mango']

Useful Methods:
- append(), insert(), remove(), pop()
- sort(), reverse()
- len(), index(), count()


7. Dictionary Operations
Dictionaries are key-value pairs and are unordered.

Example:
student = {"name": "Jainee", "age": 18, "course": "CSE"}
print(student["name"]) # Output: Jainee
£4.24
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
jainee

Get to know the seller

Seller avatar
jainee University Of California - Los Angeles (UCLA)
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
5 months
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions