View Active Threads
View Today's Posts
Home
Forums
View New Posts
View Today's Posts
My Discussions
Unanswered Posts
Unread Posts
Active Threads
Mark all forums read
Staff List
Member List
Help
Calendar
Search
Statistics
Interpreter
IRC
Homework help
Python Forum
Python Coding
Homework
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
Thread Modes
Homework help
KatherineEP
Unladen Swallow
Posts:
1
Threads:
1
Joined:
Nov 2023
Reputation:
0
#1
Nov-03-2023, 05:55 AM
Prompt says: Using the print function, print the numbers 0 to 6 on a single row to the console.
Attached Files
Thumbnail(s)
Reply
Find
Reply
Pedroski55
Da Bishop
Posts:
1,093
Threads:
143
Joined:
Jul 2017
Reputation:
37
#2
Nov-03-2023, 06:27 AM
Just look up the parameters for print(), especially, search: "Python print without newline"
Very easy!
Reply
Find
Reply
deanhystad
Posts:
6,792
Threads:
20
Joined:
Feb 2020
Reputation:
325
#3
Nov-03-2023, 01:26 PM
There is nothing in the assignment that requires using multiple print statements to print the numbers 0 to 6.
Reply
Find
Reply
jefsummers
Da Bishop
Posts:
1,358
Threads:
2
Joined:
May 2019
Reputation:
88
#4
Nov-04-2023, 05:57 PM
The option you want to use in the print statements is "end". Quick google search "python print end". Then you can see how to use a loop to do what you need. I assume you have been taught loops (while, for)?
Reply
Find
Reply
Users browsing this thread: 1 Guest(s)
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
Python Coding
-- General Coding Help
-- Data Science
-- Homework
-- GUI
-- Game Development
-- Networking
-- Web Scraping & Web Development
General
-- News and Discussions
-- Tutorials
---- Tutorial Requests and Submissions
---- Python Installation and Execution
---- Fundamentals
---- Common pitfalls and what to do
---- Web Scraping
---- Web Tutorials
---- GUI tutorials
---- Game Tutorials
---- Networking Tutorials
-- Code sharing
-- Code Review
-- Jobs
Forum & Off Topic
-- Board
---- Weekly Top Picks
-- Bar
User Panel
Messages
Log Out
My Profile
Pay your profile a visit
User Control Panel
Do some changes on your profile
My Messages
View private messages
unread
Avatar
Change avatar
Signature
Change signature
Announcements
Announcement #1
8/1/2020
Announcement #2
8/2/2020
Announcement #3
8/6/2020
Login to Python Forum
Enter your details to login to your account:
Remember me
Lost Password?
Login
Don't have an account yet?
Sign Up!
Linear Mode
Threaded Mode