Skip to content

Instantly share code, notes, and snippets.

View swarathesh's full-sized avatar

Chandra Swarathesh Addanki swarathesh

View GitHub Profile
#Print the count of all the vowels that are available in the string
inp = raw_input("enter the string").lower()
countA = inp.count('a')
countE = inp.count('e')
countI = inp.count('i')
countO = inp.count('o')
countU = inp.count('u')
#print the count
m = int(input("enter m"))
n = int(input("enter n"))
abso = m-n if m-n>0 else (m-n)*-1
print abso
from LinkedListpract.LinkedList import LinkedList
linkedlist = LinkedList()
linkedlist.insertstart(1)
linkedlist.insertstart(2)
linkedlist.insertend(12)
linkedlist.traverse()
print("\n")
@swarathesh
swarathesh / install-tensorflow.sh
Created March 8, 2017 17:26 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update