Z
Zoid in Code
Enthusiast
import random
import sys
import os
print("hello world")
name = "Jack"
os = "Linux - Ubuntu"
print(name)
print("1 + 3 =", 1+3)
quote = "always remeber you are awesome"
multi_line_quote = '''just like me'''
print("%s %s %s" % ('I like the quote' ,quote, multi_line_quote))
print('\n' *5)
#The above is how you add spaces between yoiur text
print("I don't like this ", end="")
print("newline")
shopping_list = ['Bread', 'Juice', 'Milk']
print('First item -', shopping_list[0])
print('Second item -', shopping_list[1])
print('Third item -', shopping_list[2])
print(shopping_list[1:3])
other_stuff = ['Rooting', 'Hacking', 'Coding/prgramming']
to_do_list = [other_stuff, shopping_list]
print(to_do_list)
print((to_do_list[1][1]))
print("Hi", os)
Nothing to hard but i have just started to visit python again if i can add anything please tell me
import sys
import os
print("hello world")
name = "Jack"
os = "Linux - Ubuntu"
print(name)
print("1 + 3 =", 1+3)
quote = "always remeber you are awesome"
multi_line_quote = '''just like me'''
print("%s %s %s" % ('I like the quote' ,quote, multi_line_quote))
print('\n' *5)
#The above is how you add spaces between yoiur text
print("I don't like this ", end="")
print("newline")
shopping_list = ['Bread', 'Juice', 'Milk']
print('First item -', shopping_list[0])
print('Second item -', shopping_list[1])
print('Third item -', shopping_list[2])
print(shopping_list[1:3])
other_stuff = ['Rooting', 'Hacking', 'Coding/prgramming']
to_do_list = [other_stuff, shopping_list]
print(to_do_list)
print((to_do_list[1][1]))
print("Hi", os)
Nothing to hard but i have just started to visit python again if i can add anything please tell me