Showing posts with label Python. Pycharm. Show all posts
Showing posts with label Python. Pycharm. Show all posts

Wednesday, May 2, 2018

Python...my introduction

I've spent the last few days focusing entirely on Python and Pycharm. The following is code that I typed up by following along with a tutorial. There's a bit of code toward the end that I copied and pasted. I did this because the video was formatted/recorded in such a way that I couldn't see all of the code and continued to encounter errors. Just the same, I'm really enjoying the learning process thus far!



import random
import sys
import os

print("Hello world")

name = "Austin"
print(name)

print("5 + 2 =", 5 + 2)
print("5 - 2 =", 5 - 2)
print("5 * 2 =", 5 * 2)
print("5 / 2 =", 5 / 2)
print("5 % 2 =", 5 % 2)
print("5 ** 2 =", 5 ** 2)
print("5 // 2 =", 5 // 2)

print("1 + 2 - 3 * 2 =", 1 + 2 - 3 * 2)
print("(1 + 2 - 3) * 2 =", (1 + 2 - 3) * 2)
print('\n * 3')

quote = "\"Always remember, you are awesome!!!"
multi_line_quote = '''Beans is super awesome!!'''
print("%s %s %s" % ('I like the quote', quote, multi_line_quote))

SQL

I've hit a wall in my SQL studies via the Khan Academy, and as such, I am engaging in additional studies prior to attempting to move for...