is when you type in a set of words and want to project it out
what is print statement
is the use of function in python
what is Functions are reusable pieces of programs
a __ is a sequence of values that can't be changed after it is defined.
what is tuple
range(5)
what is [0,1,2,3,4]
In Python, to access the type of a variable, you can ____.
what is type function.
keyword is use for function
what is def
st='Python Programming'
x=st.lower()
y=x.replace('python','Python')
print y
what is python programming
what is 4
The ____ function can be used to read a value from keyword. However, by using this statement you need to supply the value in single quotes.
what is Input
Good luck for the dayyyyyyyy!!!!!!
Free points~
st=['P','y','t','h','o','n']
w=''.join(st)
print w
what is python
makes a new User object
what is
x = User()
A comment in Python language can start with _ symbol
what is a #
def sayHello():
print('Hello World!')
sayHello()
sayHello()
what is
Hello World!
Hello World!
txt='Python is powerful and easy.'
words=txt.split(' ')
l=len(words)
print 'Number of words of the text:' +l;
what is the number of text is 5
An object can contain
what is
Variables and methods
by using the ___ function the value input from keyboard can be read without the use of single quotes.
what is input
def say(message, times = 1):
print(message * times)
say('Hello')
say('World', 5)
what is
Hello
WorldWorldWorldWorldWorld
are strings mutable or immutable
what is immutable
add string to end of data file
what is filevariable.write(astring)