Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

27 bytes added, 07:13, 26 May 2017
PART 1 - Using IF Statements
print('This second print statement will also not run')
print('This print statement will run')
</source>What do you notice?<br><br>
:#These if statements are using boolean logic, this means they are either True or False. The above code uses if statement that are ALWAYS set, next lets makes a if statement that runs under specific conditions.<source>
password = input('Please enter a secret password')
13,420
edits