This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#printing hello world in python | |
print("Hello world") | |
print('Hello world') | |
#it's wrong 👇🏽 | |
print("Hello world') | |
print('Hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello world") | |
print("Hello world") | |
print("Hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello world\nHello world\nHello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello\tworld\tHello\tworld") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#adding two words in a string 👇🏽 | |
print("Hello" + "World") | |
#to leave gap between two words | |
print("Hello" + " World") | |
#Found the gap ☝ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Fix the code below 👇 | |
print(Day 1 - String Manipulation") | |
print("String Concatenation is done with the "+" sign.") | |
print('e.g. print("Hello " + "world")') | |
print(("New lines can be created with a backslash and n.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Fix the code below 👇 | |
#string is missing at the first | |
print(Day 1 - String Manipulation") | |
#thi code seems good 💖 | |
print("String Concatenation is done with the "+" sign.") | |
#Here the indent is moven forward | |
print('e.g. print("Hello " + "world")') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Fixed the code below 👇 | |
print("Day 1 - String Manipulation") | |
print("String Concatenation is done with the "+" sign.") | |
print('e.g. print("Hello " + "world")') | |
print(("New lines can be created with a backslash and n.")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello " + input("What is your name")+"!") | |
print("Iam " + input("How old are you") + "🆗") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num1 = input("Enter the value: ") | |
num2= input("Enter the value: ") | |
sum = float(num1) + float(num2) | |
print("The sum of {0} and {1} is {2}".format(num1, num2, sum)) |
OlderNewer