Notes
![]() ![]() Notes - notes.io |
Type "help", "copyright", "credits" or "license()" for more information.
>>> vize=20
>>> vize
20
>>> del vize
>>> vize
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
vize
NameError: name 'vize' is not defined
>>> import math
>>> pi
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
pi
NameError: name 'pi' is not defined
>>> e
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
e
NameError: name 'e' is not defined
>>> math.pi
3.141592653589793
>>> math.e
2.718281828459045
>>> math.e**3
20.085536923187664
>>> math.exp(3)
20.085536923187668
>>> math.abs(-9)
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
math.abs(-9)
AttributeError: module 'math' has no attribute 'abs'
>>> abs(-9)
9
>>> math.ceil(9.3)
10
>>> math.floor(9.8)
9
>>> math.cmp(9.3)
Traceback (most recent call last):
File "<pyshell#15>", line 1, in <module>
math.cmp(9.3)
AttributeError: module 'math' has no attribute 'cmp'
>>> math.cmp(8,3)
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
math.cmp(8,3)
AttributeError: module 'math' has no attribute 'cmp'
>>> math.log(1000)
6.907755278982137
>>> math.log10(1000)
3.0
>>> math.log2(1000)
9.965784284662087
>>> x=[1,2,3,4,5,6]
>>> max(x)
6
>>> min(x)
1
>>> pow(2,3)
8
>>> 2**3
8
>>> round(7.5)
8
>>> round(7.2)
7
>>> math.sin(math.radians(30))
0.49999999999999994
>>> math.asin(0.5)
0.5235987755982989
>>> math.degrees(math.asin(0.5))
30.000000000000004
>>> math.sqrt(169)
13.0
>>> x=[16,81,64]
>>> y=map(math.sqrt,x)
>>> list(y)
[4.0, 9.0, 8.0]
>>> yazi='merhabalar'
>>> yazi
'merhabalar'
>>> yazi[0]
'm'
>>> yazi[2:]
'rhabalar'
>>> yazi.capitalize()
'Merhabalar'
>>> yazi.center(50,' ')
' merhabalar '
>>> yazi.count('m')
1
>>> yazi.count('a')
3
>>> yazi.endswith('lar')
True
>>> yazi.endswith('r')
True
>>> yazi.endswith('er')
False
>>> yazi.find('haba')
3
>>> yazi.index('haba')
3
>>> yazi.isalnum()
True
>>> yazi.isalpha()
True
>>> yazi.isdigit()
False
>>> yazi.islower()
True
>>> yazi.isupper()
False
>>> yazi.isspace()
False
>>> yazi='Merhaba Arkadaslar'
>>> yazi.istitle()
True
>>> ayrac='/'
>>> kelimeler=['python','matlab','c']
>>> ayrac.join(kelimeler)
'python/matlab/c'
>>> yazi
'Merhaba Arkadaslar'
>>> yazi.ljust(50,'-')
'Merhaba Arkadaslar--------------------------------'
>>> yazi.rjust(50,'-')
'--------------------------------Merhaba Arkadaslar'
>>> mesaj=' selamlar'
>>> mesaj.lstrip(' ')
'selamlar'
>>> yazi
'Merhaba Arkadaslar'
>>> yazi.lower()
'merhaba arkadaslar'
>>> yazi.upper()
'MERHABA ARKADASLAR'
>>> yazi.max()
Traceback (most recent call last):
File "<pyshell#66>", line 1, in <module>
yazi.max()
AttributeError: 'str' object has no attribute 'max'
>>> max(yazi)
's'
>>> #alfabede en sonra gelen harf ascii değeri en büyük yani
>>> min(yazi)
' '
>>> yazi.lower()
'merhaba arkadaslar'
>>> yazi.replace('ar','nar')
'Merhaba Arkadaslnar'
>>> yazi='merhaba arkadaslar'
>>> yazi.replace('ar','nar')
'merhaba narkadaslnar'
>>> print('adim %s yasim %d' % ('murat',21))
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team