Learn String Manipulation by Building a Cipher - Step 16
FreeCodeCamp » Python
by rebecca.martin
1h ago
Tell us what’s happening: text = ‘Hello World’ shift = 3 alphabet = ‘abcdefghijklmnopqrstuvwxyz’ index = alphabet.find(text[0]) print(index) print(text.lower) I cannot see what I am doing wrong can anyone help please? It just keeps saying place function call at the beginning of the line but I have? Your code so far # User Editable Region text = 'Hello World' shift = 3 alphabet = 'abcdefghijklmnopqrstuvwxyz' index = alphabet.find(text[0]) print(index) print(text.lower) # User Editable Region Your browser information: User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537 ..read more
Visit website
Learn Classes and Objects by Building a Sudoku Solver - Step 79
FreeCodeCamp » Python
by Askari
6h ago
Tell us what’s happening: Hi can someone give me this solutions i am trying this for 2 days but I am not able to do this Your code so far # User Editable Region solve_sudoku, puzzle = [ [0, 0, 2, 0, 0, 8, 0, 0, 0], [0, 0, 0, 0, 0, 3, 7, 6, 2], [4, 3, 0, 0, 0, 0, 8, 0, 0], [0, 5, 0, 0, 3, 0, 0, 9, 0], [0, 4, 0, 0, 0, 0, 0, 2, 6], [0, 0, 0, 4, 6, 7, 0, 0, 0], [0, 8, 6, 7, 0, 4, 0, 0, 0], [0, 0, 0, 5, 1, 9, 0, 0, 8], [1, 7, 0, 0, 0, 6, 0, 0, 5] ] # User Editable Region Your browser information: User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT ..read more
Visit website
Learn String Manipulation by Building a Cipher - Step 39
FreeCodeCamp » Python
by ErickV2024
17h ago
(topic deleted by author) 1 post - 1 participant Read full topic ..read more
Visit website
Learn String Manipulation by Building a Cipher - Step 35
FreeCodeCamp » Python
by samabdo998127
17h ago
Tell us what’s happening: i can not understand and go from this step can u help me? Your code so far # User Editable Region text = 'Hello World' shift = 3 alphabet = 'abcdefghijklmnopqrstuvwxyz' for char in text.lower(): index = alphabet.find(char) print(char, index) new_index = index + shift new_char = alphabet[new_index] # User Editable Region Your browser information: User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:107.0) Gecko/20100101 Firefox/107.0 Challenge Information: Learn String Manipulation by Building a Cipher - Step 35 freecodecamp.org freeCodeCamp.org Learn ..read more
Visit website
Learn String Manipulation by Building a Cipher - Step 50
FreeCodeCamp » Python
by ajayreddyyamala
1d ago
Tell us what’s happening: can anyone help me it is showing me some indent error and not able to get it Your code so far User Editable Region Your browser information: User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 text = 'Hello Zaira' shift = 3 def caesar (): alphabet = 'abcdefghijklmnopqrstuvwxyz' encrypted_text = '' for char in text.lower(): if char == ' ': encrypted_text += char else: index = alphabet.find(char) new_ ..read more
Visit website
Learn Regular Expressions by Building a Password Generator - Step 61
FreeCodeCamp » Python
by MuhammadUsman
1d ago
Tell us what’s happening: if all is not performing good why ? I followed the instructions of this step Your code so far import re import secrets import string def generate_password(length, nums, special_chars, uppercase, lowercase): # Define the possible characters for the password letters = string.ascii_letters digits = string.digits symbols = string.punctuation # Combine all characters all_characters = letters + digits + symbols while True: password = '' # Generate password for _ in range(length): password += secrets.choice ..read more
Visit website
Class and Object
FreeCodeCamp » Python
by maditsi
1d ago
How can i print the two objects below in the loop? for v in [maditsi_car, maditsi_aero]: #print(f"{*object*} is a {v.make} {v.model} ") v.get_make_model() v.action() 1 post - 1 participant Read full topic ..read more
Visit website
Learn Regular Expressions by Building a Password Generator - Step 61
FreeCodeCamp » Python
by romo.emi19
1d ago
Tell us what’s happening: I simply don’t know what else to do. Have tried many different options and still get nothing. Your code so far import re import secrets import string def generate_password(length, nums, special_chars, uppercase, lowercase): # Define the possible characters for the password letters = string.ascii_letters digits = string.digits symbols = string.punctuation # Combine all characters all_characters = letters + digits + symbols while True: password = '' # Generate password for _ in range(length): password ..read more
Visit website
Learn String Manipulation by Building a Cipher - Step 50
FreeCodeCamp » Python
by hemas
1d ago
Tell us what’s happening: I keep indenting but I can’t work out what I’m doing wrong. Your code so far # User Editable Region text = 'Hello Zaira' shift = 3 def caesar (): alphabet = 'abcdefghijklmnopqrstuvwxyz' encrypted_text = '' for char in text.lower(): if char == ' ': encrypted_text += char else: index = alphabet.find(char) new_index = (index + shift) % len(alphabet) encrypted_text += alphabet[new_index] print('plain text:', text) print('encrypted text ..read more
Visit website
Learn String Manipulation by Building a Cipher - Step 41
FreeCodeCamp » Python
by ArjitPrakash
1d ago
Tell us what’s happening: I do not understand the problem. What I need to do? Your code so far # User Editable Region text = 'Hello World' shift = 3 alphabet = 'abcdefghijklmnopqrstuvwxyz' encrypted_text = '' for char in text == ' ': print() char in text.lower(): index = alphabet.find(char) new_index = index + shift encrypted_text += alphabet[new_index] print('char:', char, 'encrypted text:', encrypted_text) # User Editable Region Your browser information: User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 ..read more
Visit website

Follow FreeCodeCamp » Python on FeedSpot

Continue with Google
Continue with Apple
OR