We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e425c5 commit 48fbedeCopy full SHA for 48fbede
Generic programming/Exercise/011.py
@@ -0,0 +1,12 @@
1
+
2
3
+sold_yesterday = 100
4
+sold_today = 20
5
6
+if sold_yesterday > sold_today:
7
+ sales_trend = -1
8
9
+else:
10
+ sales_trend = 1
11
12
+print(sales_trend)
Generic programming/Exercise/012.py
@@ -0,0 +1,4 @@
+my_string = "programming"
+print(my_string[0:4])
Generic programming/Exercise/013.py
@@ -0,0 +1,6 @@
+sentence = "Broccoli is delicious."
+words = sentence.split() # Split the sentence into a list of words
+secondWord = words[1] # Access the second word (index 1)
+print(secondWord) # Output: is
0 commit comments