<jupyter_start><jupyter_text><jupyter_code>a = 0;
for i in range(3):
  print(i)
if a == 1:
  print('True')
else:
  print('False')

a,b,c = 1,2,3
count = 0
for i in range(1,b):
  if i%c == 0:
    count += 1
print('count =', count)
num = int(input('Enter a number = '))
#num = 7

if num > 1:
  for i in range(2,num):
    if num % i == 0:
      print('%d is not a prime number' %num)
      break
  else:
    print('%d is a prime number' %num)
else:
  print('%d is not a prime number' %num)
isSelected = False
#toggle application
if isSelected:
  print('Option 1')
  isSelected = False
else:
  print('Option 2')
  isSelected = True
x = []

# Revision 1
# What volume does 41.2 g of CO2 gas at a pressure of P atm and a temperature of 514 K occupy?. 
# Given: R = 0.08206 L (atm)/K (mol) 
Mw = 44.01
m = 41.2
P = 51
R = 0.08206
T = 514
n = m/Mw
V = n*R*T/P
print('Volume = ',V)
type(V)
#List
x = [1,2,3]
y = ['a','b','c']
print(type(x))
#Tuples
x = (1,2,3)
y = ('a','b','c')
y[1]
x = 'abcd'
x[1]
y = ['a','b','c']
for i in y:
  if i == 'a':
    print('Option b')
    break
else:
  print('No option')

y = ['a','b','c']
for i in range(3):
  print(y[i])
# Revision 1
# What volume does 41.2 g of CO2 gas at a pressure 
# of P atm and a temperature of 514 K occupy?. 
# Given: R = 0.08206 L (atm)/K (mol) 
Mw = 44.01
m = 41.2
P = [51, 82, 22, 54, 71, 78, 48, 34, 48, 10]
R = 0.08206
T = 514
n = m/Mw
for i in P:
  V = n*R*T/i
  print('Volume at P = %d atm is %0.3f L' %(i,V))
# Develop a program to determine DO 
# at T = 8 oC, 16 oC, and 32 oC

T = [0, 8, 16, 24, 32, 40]
DO = [14.621,	11.843,	9.87,	8.47,	7.305,	6.413]

for i in range(6):
  if i == 1 or i == 2 or i == 4:
    print('At T = %d C DO = %0.3f' %(T[i],DO[i]))
    

x = [1,2,3,4]
x[0]
x = {1,2,3,4}
print(type(x))
x[1]
for i in x:
  print(i)
Car = {'Brand':"Honda","Year":2021}
type(Car)
Car["Brand"]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20201484623541888, 'fraction_numerical': 0.08907741251325557, 'mean_word_length': 2.9476987447698746, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '174555', 'license': 'CC0-1.0', 'n_tokens_mistral': 999, 'n_tokens_neox': 888, 'n_words': 297, 'path': 'L3_1.ipynb', 'repo_name': 'm0fauzi/BEP2073_S21', 'size': '1886'}