Skip to content

Commit 7bb8293

Browse files
authored
Add files via upload
1 parent 2fd6539 commit 7bb8293

File tree

58 files changed

+291
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+291
-0
lines changed

Python Tuple count() Method.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5)
2+
3+
x = thistuple.count(5)
4+
5+
print(x)

Python Tuple index() Method.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5)
2+
3+
x = thistuple.index(8)
4+
5+
print(x)

Python Tuples 1.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
thistuple = ("apple", "banana", "cherry")
2+
print(thistuple)

Python Tuples 2.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
thistuple = ("apple", "banana", "cherry", "apple", "cherry")
2+
print(thistuple)

Python User Input 1.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
username = input("Enter username:")
2+
print("Username is: " + username)

Python User Input 2.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
username = raw_input("Enter username:")
2+
print("Username is: " + username)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
x, y, z = "Orange", "Banana", "Cherry"
2+
3+
print(x)
4+
print(y)
5+
print(z)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
x = y = z = "Orange"
2+
3+
print(x)
4+
print(y)
5+
print(z)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fruits = ["apple", "banana", "cherry"]
2+
x, y, z = fruits
3+
4+
print(x)
5+
print(y)
6+
print(z)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
a = 4
2+
A = "Sally"
3+
4+
print(a)
5+
print(A)

0 commit comments

Comments
 (0)