Exceptions So far we have made programs that ask the user to enter a string, and we also know how to convert that to an integer. text = input("Enter something: …
programmerdude
-
-
Strings Python strings are just pieces of text. >>> our_string = "Hello World!" >>> our_string 'Hello World!' >>> So far we know how to add them together. >>> "I said: …
-
Lists and tuples Why should we use lists? Sometimes we may end up doing something like this. name1 = 'wub_wub' name2 = 'theelous3' name3 = 'RubyPinch' name4 = 'go|dfish' name5 …
-
Variables, Booleans and None Variables Variables are easy to understand. They simply point to values. >>> a = 1 # create a variable called a that points to 1 >>> …
-
Managing files in Python What are files, directories and paths? These are simple thing that many computer users already know, but I’ll go through them just to make sure you …
-
If, else and elif Using if statements Now we know what True and False are. >>> 1 == 1 True >>> 1 == 2 False >>> >>> its_raining = True …
-
Loops In programming, a loop means repeating something multiple times. There are different kinds of loops: While loops repeat something while a condition is true. Until loops repeat something while …
-
#script that displays public info about IP, network, and hardware #python3 systemInfo.py import socket from urllib.request import urlopen import re import json import sys, getopt import psutil import platform from …
-
Systeminformation is a very useful node.js library The library can get detailed information about system, cpu, baseboard, battery, memory, disks/filesystem, network, docker, software, services and processes It is supported on …
-
A collection of free ebooks that can be read online and some are downloadable about Java Java 3D Programming in Java – Daniel Selman (PDF) Apache Jakarta Commons: Reusable Java …