-
Joymercy wrote a new item 2 years, 4 months ago
string = ” javatpoint ” string2 = ” javatpoint ” print(string) print(string2) print(“After stripping all leading whitespaces:”) print(string.lstrip()) print(string2.lstrip())
-
Joymercy wrote a new item 2 years, 4 months ago
string = ” javatpoint ” string2 = ” javatpoint ” string3 = ” javatpoint” print(string) print(string2) print(string3) print(“After stripping all […]
-
Joymercy wrote a new item 2 years, 4 months ago
string = “IT IS IN LOWERCASE.” print(string.swapcase()) string = “it is in uppercase.” print(string.swapcase())
-
Joymercy wrote a new item 2 years, 4 months ago
class student: def __init__(self, name): self.name = name def __init__(self, name, email): self.name = name self.email = email […]
-
Joymercy wrote a new item 2 years, 4 months ago
# in single quotes single = ‘JavaTpoint’ # in double quotes double = “JavaTpoint” # multi-line String multi = ””’Java T point”’ […]
-
Joymercy wrote a new item 2 years, 4 months ago
def creating_gen(index): months = [‘jan’,’feb’,’mar’,’apr’,’may’,’jun’,’jul’,’aug’,’sep’,’oct’,’nov’,’dec’] y […]
-
Joymercy wrote a new item 2 years, 4 months ago
Yes, Several arguments can be passed to a function, including objects, variables (of the same or distinct data types), and functions. Functions can be passed as parameters to other functions because they are […]
-
Joymercy wrote a new item 2 years, 4 months ago
string = “GeeksforGeeks” string.swapcase() —> “gEEKSFORgEEKS”
-
Joymercy wrote a new item 2 years, 4 months ago
The set is an unordered collection of data types that is iterable, mutable and has no duplicate elements. A dictionary in Python is an unordered collection of data values, used to store data values like a map.
-
Joymercy wrote a new item 2 years, 4 months ago
pat = [1, 3, 2, 1, 2, 3, 1, 0, 1, 3] for p in pat: pass if (p == 0): current = p break elif (p % 2 == 0): continue print(p) # output => 1 3 1 3 1 print(current) # output => 0
-
Joymercy wrote a new item 2 years, 4 months ago
def myEmptyFunc(): # do nothing pass myEmptyFunc() # nothing happens ## Without the pass keyword # File “”, line 3 # IndentationError: expected an indented block
-
Joymercy wrote a new item 2 years, 4 months ago
type() and isinstance() functions to check the type of these variables. These data types can be grouped into the following categories-
-
Joymercy wrote a new item 2 years, 4 months ago
A local scope refers to the local objects available in the current function. A global scope refers to the objects available throughout the code execution since their inception. A module-level scop […]
-
Joymercy wrote a new item 2 years, 4 months ago
An Interpreted language executes its statements line by line. Languages such as Python, Javascript, R, PHP, and Ruby are prime examples of Interpreted languages. Programs written in an interpreted language runs […]
-
Joymercy started the topic What are access modifiers? in the forum C++ 2 years, 5 months ago
-
Joymercy wrote a new item 2 years, 5 months ago
4) What is the latest version of MS Word available?
-
Joymercy started the topic How do you create a hyperlink in Excel? in the forum Microsoft Excel 2 years, 5 months ago
Hyperlinks are used to navigate between worksheets and files/websites. To create a hyperlink, the shortcut used is Ctrl+K.
The ‘Insert Hyperlink’ box appears. Enter the address and the text to display. Here, we are directed to the Amazon Website.
-
Joymercy wrote a new item 2 years, 5 months ago
There are actually two ways you can do this. One is to use the increment operator ++ and decrement operator –. For example, the statement “x++” means to increment the value of x by 1. Likewise, the statement “x –” […]
-
Joymercy started the topic How do you freeze in the forum Microsoft Excel 2 years, 5 months ago
Freeze panes keep the rows and columns visible while scrolling through a worksheet. To freeze panes, select the View tab and go to Freeze Panes.
-
Joymercy started the topic Can you protect cells of a sheet from being copied? in the forum Microsoft Excel 2 years, 5 months ago
Yes, you can do it by protecting the required cells or the complete sheet. In order to do this, follow the given steps:
Select the cells that you want to protect
Open up the Font window from the Home tab
From the Protection pane, select Protection and then check the Hidden box
Click on Review tab present in the Ribbon, and then select Protect…[Read more] - Load More
