Python Student

Joined June 2019
Photos and videos
thislist = ["apple", "banana", "cherry"] thislist[1] = "blackcurrant" print(thislist) #python #exercise
1
thislist = ["apple", "banana", "cherry"] print(thislist[1]) #python #exercise
print("real madrid", "barcelona", "arsenal", sep="\n") #python #exercise
print(1, 2, 3, 4, 5, sep="-") #python #exercise
thislist = ["apple", "banana", "cherry"] print(thislist) #python #exercise #list
mike= "first format {} second format {} third format {}" print(mike.format("1 ok","2 ok","3 ok")) #python #exercise
Next lesson: format method #python #exercise #format #method
age = 36 txt = "My name is Michael, and I am {}" print(txt.format(age))
b = "Hello, World!" print(b[2:5]) #python #exercise
python_exercise retweeted
Random Python History thing: I stole Python's 'elif' from the C Preprocessor. gcc.gnu.org/onlinedocs/cpp/E…

15
185
980
python_exercise retweeted
Python'da belirli aralıklarda sayı yazdırma teknikleri.
1
4
list1 = [1,2,3,4,5] list2 = [i * 2 for i in list1] print(list2) list comprehension #python #exercise
if True: e = 4 print(e) print(e)
1
print("Enter your name:") x = input() print("Hello, ", x) string input #python #exercise
2
1
a = "Hello, World!" print(a.lower()) strings #python #exercise
a = "Hello, World!" print(len(a)) strings #python #exercise
a = "Hello, World!" print(a.upper()) strings #python #exercise
1
#out HELLO, WORLD!