This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student = [‘A’, ’B’, ’C’, ’D’, ’E’]; | |
marks = [21, 35, 13, 26, 49]; | |
n = length(marks); | |
count = 0; | |
count1 = 0; | |
for i = 1:n | |
if marks(i) >= 25 | |
fprintf(‘ %s has passed\n’,student(i)); | |
count = count + 1; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
student = ["A", "B", "C", "D", "E"] | |
marks = [21, 35, 13, 26, 49] | |
n = len(marks) | |
count = 0 | |
count1 = 0 | |
for i in range(n): | |
if marks[i] >= 25: | |
print student[i] + "has passed" | |
count = count + 1 | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
from __future__ import print_function | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) |
NewerOlder