forked from sauravtom/testing123
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoo.py
68 lines (55 loc) · 1.11 KB
/
foo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#from bar import count
import bar
import math
def hello():
#print 'Hello World'
#print 1001233*3
#print 'pokemon %s'%('go')
print 'asdasd'
def vowelcount(a):
count = 0
for char in a:
if char.lower() in 'aeiou':
count = count +1
return count
def vowelcount2(a):
count = 0
for char in a:
if char in 'aeiouAEIOU':
count = count +1
return count
def main():
a = input()
print math.sqrt( a )
#print vowelcount( int(a) )
def favorite_pokemon(cp,pokemon_type='water'):
print type(cp)
print cp
if pokemon_type == 'fire':
return 'pikachu'
elif pokemon_type == 'water':
return 'squirtle'
elif pokemon_type == 'grass':
return 'bulbasaur'
def list_pokemons(*str):
print type(str)
for i in str:
print i
def list_pokemons2(**elephant):
print type(elephant)
print elephant.keys()
for key,value in elephant.items():
print key,value
if __name__ == '__main__':
#foo(1,2,3,4,5)
list_pokemons('bulbasaur','pikachu','squirtle','zz')
'''
list_pokemons2(a='pikachu',
b='bulbasaur',
c='squirtle',
d='zz',
e='snorlax')
'''
#a = input()
#b = raw_input()
#print favorite_pokemon(cp,pokemon_type)